SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Jul 2009
    Posts
    220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE conditional statements not working

    I have this conditional statement taken from http://css-tricks.com/how-to-create-...ly-stylesheet/

    And I just noticed I can't use the rich editor functions here with Chrome 4.0.249.89 (38071).

    Anyway thats side issue. Problem here is, I have this statement

    Code:
    <!--[if lte IE 6]>
    <script type="text/javascript" src="supersleight-min.js"></script>
    <link src="ie6.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    IE 6 could read the javascript without problem. But its not reading the styles in ie6.css. Any one faced this problem too?

  2. #2
    SitePoint Zealot imouto's Avatar
    Join Date
    Sep 2004
    Location
    Gotham
    Posts
    184
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by resting View Post
    I have this conditional statement taken from http://css-tricks.com/how-to-create-...ly-stylesheet/

    And I just noticed I can't use the rich editor functions here with Chrome 4.0.249.89 (38071).

    Anyway thats side issue. Problem here is, I have this statement

    Code:
    <!--[if lte IE 6]>
    <script type="text/javascript" src="supersleight-min.js"></script>
    <link src="ie6.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    IE 6 could read the javascript without problem. But its not reading the styles in ie6.css. Any one faced this problem too?
    If you check back on that CSS-Tricks link, you'll notice that the code used was this:

    Code:
    <!--[if lte IE 6]>
    	<link rel="stylesheet" type="text/css" href="ie6-and-down.css" />
    <![endif]-->
    Script element uses the src attribute. Link element uses href attribute.
    Last edited by imouto; Mar 7, 2010 at 21:35. Reason: Added SP Reference links.

  3. #3
    SitePoint Addict
    Join Date
    Jul 2009
    Posts
    220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh gosh....i should knock myself for that mistake.

    thanks for the quick reply. yep its working good now. saved. ha...


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
  •