So i've seriously looked all over google and searched everything i could think of on the topic. I've tried dozens of different syntax styles for conditional css statements, i've even put them in random areas on the page in desperation to get them to work. I've put them in the head section, i've put them in java script sections, etc and nothing seems to work. I think i'm the only person that it doesn't work for. Does anyone know any simple ways to use conditional statements in css to create browser specific external style sheets?

Recommended Answers

All 4 Replies

i normally create two seperate style sheets. the one i call normally for Firefox and Chrome etc and then use the second style sheet with it's few lines of coding to tweak it to work properly in IE

i call them like this in the head section of my page

<link href="style/FF.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE]>
	<link href="style/IE.css" rel="stylesheet" type="text/css" media="screen" />
<![endif]-->

Of all the things i've tried this is the first to work. Thanks a lot.

cool. You know where to post if you have any other questions!

have fun creating your site :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.