Answer the question
In order to leave comments, you need to log in
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
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.
Google to the rescue:
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
/* IE10-11 */
}
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).
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 questionAsk a Question
731 491 924 answers to any question