Thursday, May 6, 2010

Interesting CSS split a UL into 3 equal columns and keep top heights aligned

use negative margins. i might be using this soon, for a 2 or 3 column menu list
http://www.wpconfig.com/2009/07/28/the-definitive-guide-to-using-negative-margins-2/
referance:
ul {list-style:none;}
li {line-height:1.3em;}
.col2 {margin-left:100px;}
.col3 {margin-left:200px;}
.top {margin-top:-2.6em;} /* the clincher */