Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

asked on

CSS Chrome specific entries

How do you make browser specific entries in your CSS?  I have a website that Chrome is rendering a specific Div in a strange way.  I need to make a Chrome specific entry in my css but am not sure about the syntax.
ASKER CERTIFIED SOLUTION
Avatar of LZ1
LZ1
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dave Baldwin
You can make IE specific CSS files by using the IE conditionals in what other browsers see only as comments.  Example below.  No other browser supports this.  Chrome is a WebKit based browser so it may support some of the webkit specific CSS extensions.
<!--[if IE 6]>
Special instructions for IE 6 here
<![endif]-->

Open in new window

These links may help you out:

This one is information on creating browser specific if statements: http://www.quirksmode.org/css/condcom.html 

This link is to the W3C validation: http://validator.w3.org/