I have this top bar menu:
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?
I have this top bar menu:
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?
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.
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;
}