V
V
Vladislav2020-11-06 07:42:13
Layout
Vladislav, 2020-11-06 07:42:13

How to include styles specifically for IE?

The idea is this, let's say the color on the button in chrome is blue, and in ie it should be yellow, as far as I understand, you need to write a separate style file for ie, but how to connect it so that other browsers do not see the ie style file, and when you enter with ie, the button is there was yellow, thanks for the help

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey delphinpro, 2020-11-06
@SlavaMaxwell

https://stackoverflow.com/questions/18907131/detec...
Hack for internet explorer 11?
https://gist.github.com/ricardozea/5549389
https://coderwall.com/p/7vatvw/css-hack-for-ie10-i...
You just need to type one query into google...

A
acwartz, 2020-11-06
@acwartz

Newfags... Only IE has conditional comments that can switch styles depending on the browser version.

<!--[if IE]><link href="/css/ie8.css" rel="stylesheet" type="text/css" /><![endif]-->

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question