Search

3/02/2009

Align List Items Horizontally with CSS ... | ruzee.com - Steffen Rusitschka

Align List Items Horizontally with CSS ... | ruzee.com - Steffen Rusitschka
Cross Browser display:inline-block
http://www.tjkdesign.com/articles/css-layout/no_div_no_float_no_clear_no_hack_no_joke.asp

For IE Win, we use display:inline;zoom:1;
IE Win does not do "inline-block" on block-level elements, so the trick is to use display:inline + zoom:1 instead. Note that if we use zoom it is because we need these elements to have layout (read on having Layout), but we cannot rely on the width declarations since we are styling the LIs as inline elements (which turns the width "trigger" off).

沒有留言: