Solved

CSS Chrome specific entries

Posted on 2011-09-30
3
453 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 500 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 83

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

Independent Software Vendors: 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

Suggested Solutions

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 …
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

726 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