B
B
belka19062014-05-05 15:44:40
css
belka1906, 2014-05-05 15:44:40

How can I set the style for IE?

On the site, you need the block to have a different height in the case for Internet Explorer and for the rest.
I understand that the design
only works for older versions of IE, how else can I solve such a problem?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vitaly Zheltyakov, 2014-05-05
@VitaZheltyakov

Unfortunately, at Microsoft, the developers are completely fucked up and now the latest versions are not uniquely identified. At least I still met a reliable working solution.

I
iDevArtem, 2014-05-05
@iDevArtem

Google to the rescue:

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { 
    /* IE10-11 */ 
}

K
Konstantin Kitmanov, 2014-05-05
@k12th

You can write your own test for Modernizr, which detects IE11 in one way or another (parses the user agent, a specific combination of the presence / absence of features).

Y
Yuri Lobanov, 2014-05-05
@iiil

You can use js
tanalin.com/articles/ie-version-js
But I have a question for your question: describe in more detail - why for new versions of ie to specify different heights? Are you using normalized.css or reset.css?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question