Internet Explorer does not recognize CSS classes that work properly in other browsers

Asked

Viewed 717 times

-3

The site I developed in Wordpress does not open properly in Internet Explorer. I noticed that Internet Explorer is not finding the styles correctly.

Website: http://nakbrasil.com.br/new

  • Take a look at lines 254 and 259 in your inline CSS, it looks like you haven’t closed the keys to @media.

  • Mmm.. I’ll analyze... I wonder if that might be what IE doesn’t recognize the way of styles?

  • Perfeitooo @Molx! Thank you so much for the tip :))

  • I found a similar problem where a CSS error caused problems only in IE, but not in firefox, on ONLY in English.

  • It’s time for IE to retire once and for all my kkk.. he’s the one who delays our life!! Thank you even (Y)

1 answer

5


IE can’t handle CSS errors as well as other browsers. In your code, two keys } are missing from the items @media, so that styles after this error are not read correctly. This can happen for other types of errors as well, such as a class with a reserved name, such as in this case the English OS.

Manually searching for errors in hundreds of rows of CSS is not simple, so a good idea is to use websites like CSS LINT in which you paste your CSS and it looks for problems in the code, and then try to solve the first error (other errors will probably be detected as a consequence of the first).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.