Skip to content

Instantly share code, notes, and snippets.

@cheeaun
Created February 5, 2009 05:18
Show Gist options
  • Save cheeaun/58559 to your computer and use it in GitHub Desktop.
Save cheeaun/58559 to your computer and use it in GitHub Desktop.
Cross-browser display: inline-block
/*
* 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/
*/
a{
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