Return to Snippet

Revision: 4644
at January 14, 2008 15:23 by Winkyboy


Initial Code
.sample {
height: 15px;
#height: 15px;
_height: 21px;

Initial URL
http://www.cmsproducer.com/different-css--firefox-internet-explorer-7-IE-6-5

Initial Description
Set different values for an element based on browser (specifically, how the browser interprets the CSS).  Definitions must be in order as shown below because newer definitions override existing.

The first setting will apply to all browsers.  
The second setting (using a pound symbol, #) will only apply to Microsoft Internet Explorer.
The third setting (an underscore, _ ) will only apply to IE browsers 6.0 and older.

Initial Title
Conditional CSS for FF, IE7, IE6

Initial Tags
css

Initial Language
CSS