/ Published in: CSS

Add two containers to the element to be centered.
This is also needed for IE6:
1.
2.
.navwrap ul{float:left;}
3.
This is also needed for IE6:
1.
2.
.navwrap ul{float:left;}
3.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
1. .navwrap{ 2. float:left; 3. position:relative; 4. left:50%; 5. } 6. .navwrap ul{ 7. position:relative; 8. left:-50%; 9. }
URL: http://www.search-this.com/2007/09/19/when-is-a-float-not-a-float/
Comments
