Table without color IE

Asked

Viewed 223 times

1

I have a problem on the page of IE11 because I see the rectangle to White and in Chrome appears correctly. Primeira imagem IE11 segunda Google Chrome

<form method="post" action="Procurarquery.php"  enctype="multipart/form-data">

CSS:

.Tabela {
background: #7db9e8; /* Old browsers */
background: -moz-linear-gradient(top, #7db9e8 1%, #1e5799 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-  stop(1%,#7db9e8),color-stop(100%,#1e5799)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #7db9e8 1%,#1e5799 100%); /*   Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #7db9e8 1%,#1e5799 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #7db9e8 1%,#1e5799 100%); /* IE10+ */
background: linear-gradient(to bottom, #7db9e8 1%,#1e5799 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7db9e8',   endColorstr='#1e5799',GradientType=0 ); /* IE6-9 */
 }
  • I tried it on http://jsfiddle.net/ and it went well

  • That’s where it works. But in IE it’s so white

  • 1

    You didn’t enter all the code, so I saw the background is a gradient and not a solid color. Enter the CSS that applies the gradient, the problem could be this.

  • Exactly, @Filipe is right. What you have there (solid color and not a gradient) works well everywhere.

1 answer

1


The problem is in CSS, what you posted is incomplete.
Note that what you posted applies a solid color and not a gradient as in the image.

<table style="width:100%;height:100%;background-color:#4682B4;" bgcolor="#4682B4" ...
background-color:#4682B4;
bgcolor="#4682B4"

Make sure your CSS is IE compatible, see a cross browser example:

background: #7db9e8; /* Old browsers */
background: -moz-linear-gradient(top, #7db9e8 1%, #1e5799 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#7db9e8),color-stop(100%,#1e5799)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #7db9e8 1%,#1e5799 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #7db9e8 1%,#1e5799 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #7db9e8 1%,#1e5799 100%); /* IE10+ */
background: linear-gradient(to bottom, #7db9e8 1%,#1e5799 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7db9e8', endColorstr='#1e5799',GradientType=0 ); /* IE6-9 */

See here in operation the code above: jsfiddle.net/wLV65/

Please note that the 100% height inherits the height of the parent, that is, if the parent does not have a set height, the child also will not have and this is sufficient for the gradient not to be applied in the IE.
Try changing the 100% height for a fixed height, it will work in IE.

  • I added the CSS that put me and the result is the same.

  • @user3253195 put your code here http://fiddle.jshell.net/, all your css and your html, the problem must be different.

  • http://fiddle.jshell.net/vA9bk/ But here the code works fine

  • @user3253195 works there without problems in IE too? In IE9,10,11?

  • Only works on fiddle.jshell.net on IE11 Not working.

  • @user3253195 the problem is now in your html. Try removing width:100% and height:100% of the table’s tag style and changing the class. table, inserting a fixed height and width, for example width:500px and height:500px. Note that it started working in IE.

Show 1 more comment

Browser other questions tagged

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