Wednesday, December 29, 2010

CSS Browsers Detection

 Internet Explorer 6

<!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="/css/ie6.css" />
<![endif]-->

For Internet Explorer 6 or less than

<!--[if lte IE 6]>
    <p class="massiveLetters">You are using Internet Explorer 6, for the love of God please upgrade!!</p>

    <script type="text/javascript">
        alert('Stop Using IE6 now!!');
    </script>
<![endif]-->

For non Internet Explorer

<!--[if !IE 6]>
    <link type="text/css" rel="stylesheet" href="/css/ie6.css" />
<![endif]-->

1 comment: