views:

97

answers:

3

I have this top bar menu:

http://yoursdproperty.com/

I need to have the text always take up 100% of the width. how do i do this?

if I add more links i want the sizing to be dynamic

any ideas?

+1  A: 

It depends on your browser requirements: For modern browsers you can do something like:

ul {
    display: table;
}
li {
    display: table-cell;
}

for older browser compatibility you might have to use a real table.

jeroen
Yeah unfortunately the only way I can think to do it without JavaScript is to use Tables. Yeeich.
Shawn Steward
+1  A: 

you can just not specify the width or set it to auto

Ross
+1  A: 

specify a width as a percentage.

<ul>
    <li>something</li>
    <li>something</li>
    <li>something</li>
    <li>something</li>
<ul>

ul li {
    width:25%;
    display:inline;
}
Catfish
That doesn't handle adding new items however, he wants it to always add up to 100% without having to modify the widths every time he adds a link (or links may be dynamic).
Shawn Steward
Good point. I see re-read the questions and understand it better.
Catfish