Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Need help with IE issues Reply To: Need help with IE issues

#144195
Senff
Participant

First thing to do is to make sure there is ABSOLUTELY NOTHING (not even a SPACE) before declaring your doctype. Right now there’s way too much:

This:


<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr">

Should be:


    <!DOCTYPE html>
    <!--[if lt IE 9]>         <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" class="no-js lt-ie9"> <![endif]-->
    <!--[if gt IE 8]><!--> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" class="no-js"> <!--<![endif]-->

No IE7 or “less than IE7” detection needed.