Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Conditional Statement = White Screen

    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

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

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,620
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    Quote Originally Posted by wadep View Post
    Code:
    <!--[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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •