Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS alignment issue. IE only. A little help? Re: CSS alignment issue. IE only. A little help?

#58060
drake
Member

– ul tag is a block element so there is no need to use an enclosing div.

ul {
list-style:none;
overflow:hidden;
zoom:1;
margin:0 25px;
font:normal 14px/45px arial,helvetica,sans-serif;
background:url(images/menubar.png) 0 0 repeat-x;
padding: 0 30px;
}

– don’t add style to the li tags, just display inline

– use padding and margins on the tags to position the menu items within the menubar and float them left