Archived

This topic is now archived and is closed to further replies.

  • 0

Centering text on feature box titles.

Question

Posted · Report post

Another noob problem with HTML: I tried centering the Feature Box Title text with: <h3><p style="text-align: center;">Travel</p></h3> And broke a lot of things! What have I done horribly wrong?

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

Got a link to your page, with this change made? Would like to see the horribly wrong results. :) You can try this: <p class="center">My wonderful text goes here</p>

Share this post


Link to post
Share on other sites

Posted · Report post

It had somehow broken my menu bar links...they were all in a pile. Your code above: <h3><p class="center">Food</p></h3> Moves the "border line" down, I would prefer that stay flush... Thoughts? Thanks!

Share this post


Link to post
Share on other sites

Posted · Report post

Try <h3 class="center">Food</h3> instead. The p tag makes the text a block and adds the space underneath.

Share this post


Link to post
Share on other sites