Results 1 to 3 of 3

Thread: How to target IE 10 and 11 with CSS style

  1. #1
    Join Date
    Dec 2009
    Location
    NY NY USA
    Posts
    228
    Thanks
    158
    Thanked 1 Time in 1 Post

    Default How to target IE 10 and 11 with CSS style

    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.


    Thanks

    Code:
    @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; }
    }
    Last edited by KennyP; 06-13-2018 at 03:59 AM.

  2. #2
    Join Date
    Oct 2018
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  3. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,820
    Thanks
    49
    Thanked 237 Times in 230 Posts
    Blog Entries
    56

    Default

    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.

Similar Threads

  1. Help with target URL
    By annexw in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 02-18-2014, 07:08 PM
  2. Style Sheet Switcher (v1.1) - random style on every new site visit
    By matteus in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 07-07-2008, 04:09 PM
  3. Target a page and load target iframe
    By deneb87 in forum HTML
    Replies: 3
    Last Post: 05-26-2007, 08:37 AM
  4. style.pixelLeft and style.left
    By pcbrainbuster in forum JavaScript
    Replies: 5
    Last Post: 03-16-2007, 06:24 PM
  5. Style Sheet Switcher (v1.0) - IE does not remember style
    By miodrag in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 06-02-2006, 01:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •