O
O
OccamaRazor2016-11-17 14:06:35
css
OccamaRazor, 2016-11-17 14:06:35

How to properly style under IE7-11?

1. Is there a replacement for html5.js? 404 error when visiting a link

<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

2. How to indicate in css that this property is for ieX, is this method the only correct one of its kind?
<!--[if lt IE 7 ]><html dir="ltr" lang="en-US" class="no-js ie ie6 lte7 lte8 lte9"><![endif]-->
<!--[if IE 7 ]><html dir="ltr" lang="en-US" class="no-js ie ie7 lte7 lte8 lte9"><![endif]-->
<!--[if IE 8 ]><html dir="ltr" lang="en-US" class="no-js ie ie8 lte8 lte9"><![endif]-->
<!--[if IE 9 ]><html dir="ltr" lang="en-US" class="no-js ie ie9 lte9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->

#wrapper{ font-size: 16px; } 
.ie6 #wrapper{ font-size: 15px;}
.ie7 #wrapper,.ie8 #wrapper{ font-size: 9px;}
.ie9 #wrapper{font-size:10px}

3. Is it possible to simplify the layout for ie, hack features, where can I find it? ran into a problem that for some reason IE does not recognize svg if it is a :before element, but in any other case it works fine. Where can I find complete information on using conditional comments for IE?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Ivanov, 2016-11-17
@space2pacman

No way. Forget IE 7. Let it die in peace.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question