PDA

View Full Version : Conditional Statement = White Screen



wadep
06-15-2010, 12: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, 01: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.