...

View Full Version : Resolved conditional comments



qhx398
12-19-2009, 04:29 AM
hey guys, im trying to use conditional comments so if someone has an IE browser, the website will use a stylesheet im making specifically for it. I have the code as follows but it doesn't seem to want to work. Do I need to add anything to it?


<!--[if IE 7]><href="styles/main_ie.css" rel="stylesheet" type="text/css" /><![endif]-->

vineet
12-19-2009, 05:44 AM
<href="styles/main_ie.css" rel="stylesheet" type="text/css" />


should be



<link href="styles/main_ie.css" rel="stylesheet" type="text/css" />


vineet

qhx398
12-19-2009, 05:51 AM
doh, how did I miss that. I must be tired thanks vineet!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum