[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 493
  • Last Modified:

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.
0
rgranlund
Asked:
rgranlund
1 Solution
 
LZ1Commented:
The only way to specify browser specific CSS is through conditional comments and they only work IE.  Have you tried validating through the W3C? You may find the problem there. If that doesn't help, please post a live link so we can see what your talking about.
0
 
Dave BaldwinFixer of ProblemsCommented:
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

0
 
thebradnetworkCommented:
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/
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now