Tribute Page-HTML/CSS

I want to put the last hyperlink at center position; can anyone help; i was not able to do it with “text-align” also.

Hi, while posting a new topic please share your code or you can give your codepen link. It makes debugging your code easy for us.

Sir, i have posted the link now.

the a tag is not a block level element element so text align center would not work on it. give it a display of block and then use text-align: center. alternatively, you can also use margin: 0 auto for that;

  display: block;
  text-align: center;

Hope this helped! :slightly_smiling_face:

1 Like

Thank you! First both the links got center; but by putting a id with the last link, it worked.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.