Log in

View Full Version : How to target IE 10 and 11 with CSS style



KennyP
06-12-2018, 09:16 AM
Hi:

I tried every hack I could find to target IE 10 and 11 with the following style, to raise the site's contact form by -30px , but none of them work.
They also break up most of the other CSS of that same form when using firefox.

What am I missing?

The website. (http://www.billyjoeconor.com)

Thanks



@media screen and (-ms-high-contrast:active),
(-ms-high-contrast:none) {

.form-div {
padding-top:-30px !important;
}
{ _:-ms-fullscreen, :root .form-div { padding-top:-30px !important; }
}

SteveMot
10-13-2018, 03:37 PM
Is what Kenny is trying to do impossible? It would fit perfectly into what I'm currently trying to do as well. Any help would be appreciated.

molendijk
10-15-2018, 03:54 PM
Paddings are meant to create space around the contents of a 'box', not to create (or shrink) space around the box itself; you should use margins (positive or negative ones) for that purpose.