Jump to content


Photo

Centering text on feature box titles.


This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1 robbin_g

robbin_g

    Advanced Member

  • Members
  • 57 posts

Posted 12 January 2010 - 04:15 PM

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?

#2 justin

justin

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 12 January 2010 - 07:35 PM

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>

#3 robbin_g

robbin_g

    Advanced Member

  • Members
  • 57 posts

Posted 13 January 2010 - 01:23 AM

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!

#4 jnoh

jnoh

    Advocate

  • Members
  • PipPipPipPipPip
  • 502 posts

Posted 13 January 2010 - 05:23 PM

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