...

View Full Version : Conditional Statement = White Screen



wadep
06-15-2010, 01:59 AM
I have a conditional statement to go to a different CSS when it's less than or equal to IE7, but when the site is opened in IE 8 it's completely white. The conditional statement works fine and sends IE 7 or lower to the different style sheet.

The current conditional statement is


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

VIPStephan
06-15-2010, 02:46 AM
<!--[if lte IE 7]>
<link href="ie-styles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
< ![endif]-->

There is a whitespace between < and ! in the comment’s closing tag. Also, there is an opening style tag without closing equivalent. And lastly make sure you’re not viewing the site in IE7 compatibility mode.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum