CSS display: inline-block
and width: 100%
does not work on IE6 and IE7.
Does anyone have some solution? Thanks!
<style>
nav {text-align: justify;}
nav li {display: inline-block; white-space: nowrap;}
nav span {display: inline-block; width: 100%;}
</style>
...
<nav>
<ul>
<li>Home Page</li>
<li>Services</li>
<li>Clients</li>
<li>Portfolio</li>
<li>Contact Us</li>
<span></span>
</ul>
</nav>
Update:
So it works fine also on IE6, but when the list has more words it looks not good-> "Contact Us":
nav { text-align: justify; }
nav * { display: inline; }
nav span {
display: inline-block;
position: relative;
width: 100%;
height: 0;
}
<nav>
<ul>
<li>Home Page</li>
<li>Services</li>
<li>Clients</li>
<li>Portfolio</li>
<li>Contact Us</li>
</ul>
<span></span>
</nav>