dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: target all browsers except for ie 6 and 7?

Hybrid View

  1. #1
    Join Date
    Oct 2011
    Posts
    33

    target all browsers except for ie 6 and 7?

    Hello, I have a million problems on older versions of IE, and can't be arsed by adjusting everything, so I'll just display different html. I don't mind doing this with css, but I'm not sure if browsers load content even if it is not displayed (using 'visibility: hidden').
    I tried combining something with conditional comments but it didn't work out, is there a way to select all browsers except for IE 6 and 7 with them? I was thinking something like [if !(IE)|!(lt IE 8)] but the syntax is not the same for selecting non-IE browsers...
    Any help is appreciated!
    Last edited by janje; 02-29-2012 at 05:38 AM.

  2. #2
    Join Date
    Oct 2011
    Posts
    33
    HTML Code:
    <!--[if !(IE)|(gt IE 7)]><!--> html <!--<![endif]-->
    It turns out the above is working.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles