?
Solved

CSS Chrome specific entries

Posted on 2011-09-30
3
Medium Priority
?
471 Views
Last Modified: 2012-06-27
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
Comment
Question by:rgranlund
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 30

Accepted Solution

by:
LZ1 earned 2000 total points
ID: 36893919
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
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 36893933
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
 
LVL 6

Expert Comment

by:thebradnetwork
ID: 36899651
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question