user2534035
user2534035

Reputation:

CSS background colour is different between IE and Chrome

I am setting color:#0080FF; and it is showing as a skyblue colour in the visual studio editor, but when I run it in internet explorer it is not giving the appropriate colour.

The problem lies in IE, because when I changed the browser to Chrome, it displayed the correct colour that I want to apply.

I also converted color:#0080FF; to color:rgb(0, 128, 255); but no success.

I feel like I am lost now. Any solutions?

Upvotes: 0

Views: 2063

Answers (4)

Chris Love
Chris Love

Reputation: 3893

enter image description hereI do not see any difference on my machine, I know works on my machine. I setup JSFiddle and took a screen shot. http://jsfiddle.net/docluv/ExLwd/

.blue{
   background-color:#0080FF;
   color:#fff;
   height:20em;
   width:20em;
}

Upvotes: 0

Jayanth Ramachandran
Jayanth Ramachandran

Reputation: 8746

Different browsers some time render colors differently. A possible solution is , try some other color which works uniformly throughout .

MSDN Link of Bug

Upvotes: 2

Venu immadi
Venu immadi

Reputation: 1605

try image as background to i.e browsers

 example

 .yourclass{

    /*if ie 
     background: url(path/image)*/

  }

Upvotes: 0

J2D8T
J2D8T

Reputation: 825

Try using web safe colors it should be the same on all browsers. You can find them with a simple Google search.

Upvotes: 0

Related Questions