IE and other browsers! RRS feed

  • Question

  • User895691971 posted

    Hi, I just went through this:

    <!--[if lte IE 7]>
    		<link href="http://i3.asp.net/fan-cdn/cheetah/style/prod-lteIE7-site.min.css?cdn_id=2013-09-04-o49" rel="stylesheet" type="text/css" media="screen" />

    This code was from this site. I wanted to know what does this mean? How does this work for browsers? What if a browser is NON-IE and what if its IE!

    Wednesday, September 11, 2013 4:24 AM


  • User-352524747 posted


    <!--[if lte IE 7]>

    It works only for IE. 

    lte = less than or equal

    gte = greater than or equal

    lt = less than

    gt = greater than

    You can use also if IE X...

    For other browsers you should use a javascript to detect the version of the browser. So, this code detect if IE <= v.7, use this CSS, only in screen mode (not for phones, projectors etc...)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 11, 2013 4:33 AM