Tribute page issue, please help

Hi everyone, i am new here and thank you for having me in this awesome community.

I just completed first chapter of Responsive Web Design Certification and started to build the tribute page. I am trying to put the text below the picture to the center of the page however the (text-align: center;) command doesn’t change anything and the text is still on the left.

I know the page and work is very poor, hence the need for help. I need to mention i am going back to the lessons when i’m stuck with something, maybe someone can point me out to which chalenge/chapter i need to look in order to get this done?

Many thanks.

I have honestly never seen anybody use p2 before, so I don’t know if that will work. The way I would go about this is to make a class for image text and use that to regulate the font-size, like this:

.image-text { font-size: 14px; text-align: center; }

, and then add the class to the text you want it applied on, like this:

<p class="image-text"> Leo Fender presenting one of his Stratocaster guitars < /p>

(I removed the 2 from the < p2> tags, and completely removed the p2 styling element inside of the < style> element) This will center the text under the picture.

2 Likes

Erio, you are a star, it worked perfectly, many thanks !)

1 Like