What does it mean?

Discussion in 'HTML & Website Design' started by cskanna, Dec 15, 2006.

Thread Status:
Not open for further replies.
  1. #1
    I have seen the following html code on some websites.

    As I am new to web design I am not sure what it is

    	<!--[if lte IE 6]><style type="text/css" media="screen">@import url(css/IE6.css);</style><![endif]-->	
    	<!--[if gte IE 7]><style type="text/css" media="screen">@import url(css/IE7.css);</style><![endif]-->	
    
    Code (markup):

     
    cskanna, Dec 15, 2006 IP
  2. Cypherus

    Cypherus Peon

    Messages:
    1,551
    Likes Received:
    102
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It means that if the user is running internet explorer 6 or 7, some extra CSS files will be loaded..

    This is beacuse different browser handles xhtml/css/html different ways :/
     
    Cypherus, Dec 15, 2006 IP
  3. candidindia

    candidindia Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i completely agree with cypherus as this code is kept to hadle different fuctionalities of different browsers
     
    candidindia, Dec 15, 2006 IP
  4. serversidescripter

    serversidescripter Banned

    Messages:
    69
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah! It’s an error trapping technique for the new version of internet explorer 7
     
    serversidescripter, Dec 15, 2006 IP
  5. JCS

    JCS Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Its been around for ages. They have a proper name, but I know them as IE CSS Hacks

    As IE and FF, for exmaple, render pages differently (as with the padding and margins etc) IE Hacks are sometimes used to get around these
     
    JCS, Dec 15, 2006 IP
Thread Status:
Not open for further replies.