fi0rini
fi0rini

Reputation: 1198

HTML Horizontal Navigation UL not filling space

Please help with this problem.

This navigation bar will not work properly and every browser displays it differently.. What am I doing wrong? Is this code not to proper specification? and I don't want to have to set a static height for all the a, li, and ul accordingly... shouldn't they fill up with the text? i don't know what I am doing wrong he text combined with <a> tags in the <li>.

Please see the fiddle for example. Thanks

http://jsfiddle.net/z2Kcx/

Upvotes: 0

Views: 88

Answers (1)

Adrift
Adrift

Reputation: 59799

Add a clearfix to #nav - fiddle

#nav::after {
    content: "";
    display: table;
    clear: both;
}

Upvotes: 1

Related Questions