Path: blob/trunk/third_party/closure/goog/css/common.css
2868 views
/*1* Copyright 2009 The Closure Library Authors. All Rights Reserved.2*3* Use of this source code is governed by the Apache License, Version 2.0.4* See the COPYING file for details.5*/67/*8* Cross-browser implementation of the "display: inline-block" CSS property.9* See http://www.w3.org/TR/CSS21/visuren.html#propdef-display for details.10* Tested on IE 6 & 7, FF 1.5 & 2.0, Safari 2 & 3, Webkit, and Opera 9.11*12* @author [email protected] (Attila Bodis)13*/1415/*16* Default rule; only Safari, Webkit, and Opera handle it without hacks.17*/18.goog-inline-block {19position: relative;20display: -moz-inline-box; /* Ignored by FF3 and later. */21display: inline-block;22}2324/*25* Pre-IE7 IE hack. On IE, "display: inline-block" only gives the element26* layout, but doesn't give it inline behavior. Subsequently setting display27* to inline does the trick.28*/29* html .goog-inline-block {30display: inline;31}3233/*34* IE7-only hack. On IE, "display: inline-block" only gives the element35* layout, but doesn't give it inline behavior. Subsequently setting display36* to inline does the trick.37*/38*:first-child+html .goog-inline-block {39display: inline;40}414243