Jump to content
Sign in to follow this  
robbin_g

Centering text on feature box titles.

Recommended Posts

robbin_g    0
robbin_g

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
justin    0
justin

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
robbin_g    0
robbin_g

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
jnoh    0
jnoh

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×