You are here: Re: Tabbed navigation and CSS « HTML « IT news, forums, messages
Re: Tabbed navigation and CSS

Posted by meltedown on 12/29/05 04:16

kaibo wrote:
> hi all,
>
> newbie here...trying to create a nav bar for a user (using the 'sliding
> doors' technique). i think i've got most of it worked out, but i'd really
> like to center the whole bar on the page.
>
> example here:
>
> www.monkeymynd.com/testcr
>
> the .css file has the line items in the nav bar as 'float:left', and
> changing this to 'center' obviously throws the nav bar off. so, i'm not sure
> how to just center the whole bar.
>
> also, any comment/suggestions are welcome.
>
> thanks in advance,
> stacey
>
>

change
#header ul {
margin:0;
padding:10px 10px 0;
list-style:none;
}

to:
header ul {
margin:0 auto;
padding:10px 0;
list-style:none;
width:44em;
}

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация