Imagine I\'m having a DIV
. I want to display it in a row with other divs, so I\'m giving it display: inline-block
along with other style definitions in
To make inline-block
work on block-level elements in IE7, I frequently add this to my answers:
I sure hope what I'm suggesting everywhere actually works :D
See: http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/
selector {
display: inline-block;
*display: inline;
zoom: 1;
}