Forked from cheeaun/cross-browser-display-inline-block.css
Created
May 13, 2011 05:59
-
-
Save eralston/970060 to your computer and use it in GitHub Desktop.
Cross-browser display: inline-block
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Cross-browser display: inline-block | |
* | |
* References: | |
* - http://foohack.com/2007/11/cross-browser-support-for-inline-block-styling/ | |
* - http://www.getonthenet.eu/css-howto-cross-browser-inline-block/ | |
*/ | |
inline-block { | |
display: -moz-inline-box; /* Firefox 2 */ | |
display: inline-block; /* All good browsers */ | |
zoom: 1; /* IE6/7 magic */ | |
*display: inline; /* also IE magic, set this if it's not inline */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment