homepage Welcome to WebmasterWorld Guest from 54.226.43.155
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
How do I center list items that have background images behind them?
founder




msg:4462158
 7:30 pm on Jun 6, 2012 (gmt 0)

I have a list of links that will be used as a Navigation Bar. I am putting a background image under the text of the list item/links and want the text centered. The background image is just a colored gradient.

 

legaleagle




msg:4462206
 9:12 pm on Jun 6, 2012 (gmt 0)

Try...


display: block;
margin-left: auto;
margin-right: auto;

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved