July 27, 200917 yr I have tried various if IE Conditional comments and none seem to work. I need one to work if IE6 This one is not working: <!--[if IE 6]> <link href="/stylesheet/ie6.css" rel="stylesheet" type="text/css" /> <![endif]--> Can anyone help please?
July 27, 200917 yr The first / in the url may not be needed. I never use a / if the file or folder is in the same folder/directory as the page you are coding. Try <!--[if IE 6]> <link href="stylesheet/ie6.css" rel="stylesheet" type="text/css" /> <![endif]--> Is your folder called stylesheet in the same folder/directory as the page file? The conditional comment needs to be placed in the head section AFTER any other stylesheet link(s). People often don't put a space between IE and 6 but you have a space, so that shouldn't be the problem. If you have inline styles (those in the html tags starting style="..." ) then they will take priority as they will be processed last.
July 27, 200917 yr Author Thanks I have tried everything I can think of. With and without leading / IE 6 & IE6 Nothing seems to work.
July 27, 200917 yr Also make sure you IE conditional stylesheet link appears in your code after your other stylesheet links, or IE may pick up the conditional one, and then the main one afterwards, thus rendering it useless.
July 27, 200917 yr Author Thanks for the help guys, Found an even better solution instead of separate style sheets. Here it is and saves loads of time color: #999; /* shows in all browsers */ *color: #999; /* notice the * before the property - shows in IE7 and below */ _color: #999; /* notice the _ before the property - shows in IE6 and below */ And So On...
Create an account or sign in to comment