Skip to content

Instantly share code, notes, and snippets.

@dara
dara / Sass Mixins
Last active December 20, 2015 02:09 — forked from brentvatne/gist:1218364
//using the technique from: http://colinaarts.com/articles/inline-block-and-you/
@mixin cross-browser-inline-block {
display: inline-block; /* For normal, healthy browsers */
* html & { /* for IE6 */
display: inline;
}
*+html & { /* for IE7 */
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Nice Buttons</title>
<style>
* { margin: 0; padding: 0; }
ul {
padding: 20px;
width: 80px;
float: left;