Reputation:
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
Reputation: 3893
I 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
Reputation: 8746
Different browsers some time render colors differently. A possible solution is , try some other color which works uniformly throughout .
Upvotes: 2
Reputation: 1605
try image as background to i.e browsers
example
.yourclass{
/*if ie
background: url(path/image)*/
}
Upvotes: 0
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