Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is what I've been doing and it has worked relatively well.

  <!--[if lte IE 7]>
     <body class="ie67">
  <![endif]-->
  <!--[if !IE]>-->
  <body>
  <!--<![endif]-->
This allows me to target IE6/7 with the .ie67 class


How do you validate your markup like that?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: