THE COLOR OF MY WEBSITE DOESN’T OPEN RIGHT ON IE11 AND EDGE?

Asked

Viewed 45 times

-1

Good afternoon Devs, I’m already with that...I managed to convert the colors in Firefox...plus IE no chance, and the customer still wants to look at IE...Have any way to solve? I used those codes on the Moz.

@-moz-document url-prefix() {
   #header.reveal.alt{
        background: #848484;
    }

     body{
        background: #848484;
    }

    #header{
        background:#848484 ;

    }

are those 3 Divs I need to change in IE tbm...

Link

1 answer

3

Face the problem is that you declared the color inside a "Hake" that makes the color only work on Fire fox @-moz-document url-prefix() { } everything inside of this will only render in the Mozilla browser, or in other browsers will show the white color #ffffff (is actually "transparent" and the background of the browser is white and not document) which is the color default of most user-agents

For the color to work on all browsers, declare it outside the @-moz-document url-prefix() { }

body{
  background: #848484;
}
#header{
  background:#848484 ;
  height: 100px;
  border: 1px solid;
}
<div id="header"></div>


See how it is in Chrome

inserir a descrição da imagem aqui

  • I have already declared out these colors, they run 100% normal in Chrome. put on others not...so I had to declare so for Mozila to read. Now Mozila and Chrome are OK...but IE nothing happens...

  • @Igor here worked normal in both, IE and EDGE, I entered the link you posted and the color tb was equal in both. If you want you can try making some Hake tb for IE. Here’s an answer to that that might help you https://answall.com/questions/266906/restricir-css-ao-ie/266911#266911 in what you put there for IE use ! Important can help itself

  • Seriously, man? I’ve been testing it for a week and it doesn’t show up for me... even with that application?

  • @Igor clears your browser cache and try again, or go to another PC to test. Put tbm margin:0 in your html and body for css

  • Can you send me the screen, bro? I’m going to come here...

  • @Igor checks there on the link tested on Chrome https://imgur.com/SDOPOHo note that I put:0 margin on the body too, but your website ran out of that white border

  • In Chrome he ta show, tbm I took this edge mano...but wanted it to reproduce like this in IE...Access and I break nothing? I can’t even turn white...

  • @Igor guy but you’re putting another color on Body pq? See that on your main.css on line 81, you are declaring another color for Body!! http://prntscr.com/owa7mj have to fix it there. And you are using color in this format #48484896 this format IE does not understand, it only understands up to 6 digits as Hex

  • I just took off that color in BODY, and I declared the code of your link that I saw...did it rotate or is it wrong? @media screen and (-ms-high-Contrast: active), (-ms-high-Contrast: None) { #header.reveal.alt{ background: #848484; } body{ background: #848484; } #header{ background:#848484; } }

  • @Igor here in IE11 this code worked. I would still put background:#848484 !important just to ensure

  • Pow show ! Can you send me the screen guy? I’m without IE11 here and I can’t install...have some online preview ? I’m pulling hair bro...

  • @Igor http://prntscr.com/owai8j ta ai

Show 7 more comments

Browser other questions tagged

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