SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru team1504's Avatar
    Join Date
    May 2010
    Location
    Okemos, Michigan, USA
    Posts
    732
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    IE conditional comments not working when condition is met?

    Hello,
    This IE Conditonal Comment is a snippet of a page I made. However, when I run or view the page in IE8, it does not execute or not ignore the IE conditional code.

    Here it is:
    Code HTML4Strict:
    <!--[if lt IE 9>
        		<style type="text/css">
        		h2{
        			padding-top:0px;
        			margin-top:10px;
        		}
        		#noJs{
        			margin:0 auto;
        			text-align:center;
        		}
        		#footer, #help{
        			display:none;
        		}
        		.bold{
        			font-weight:700;
        		}
        		.left{
        			float:left;
        			text-align:left;
        		}
        		.right{
        			float:right;
        			text-align:right;
        		}
        		noscript, noscript *{
        			display:none !important;
        		}
        	</style>
        <![endif]-->

    Am I doing something obviously or stuipdly wrong? Because I have been trying and trying to think why this is not working...

    Thanks for all the help in Advance,
    Team 1504

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Your missing the closing ] bracket on the first line.

    Code:
    <!--[if lt IE 9]>

  3. #3
    SitePoint Guru team1504's Avatar
    Join Date
    May 2010
    Location
    Okemos, Michigan, USA
    Posts
    732
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    wow. thank you. I knew it had to be something stupid... ?

    I think its just one of theose obvious things were I had been looking at it too long to see it. So I needed a new pair of eyes

  4. #4
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yeah it took me a few to see it too. Glad you got it sorted out.


Tags for this Thread

Bookmarks

Posting Permissions

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