Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm experiencing a strange issue with just some of my IE 9 users.

The following CSS should be a nice light grey gradient. But on some of my IE 9 users the gradient is a dark blue. I also have a green and an orange gradient which is coming out in the exact same shade of blue.

When loaded in Firefox or Chrome on the same machine it works fine.

CSS
div.contentContainerForm {
  position: absolute;
  top: 80px;
  bottom: 15px;
  width: 100%;
  overflow: hidden;
  background-color: #f0f0f0;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='@from', endColorstr='#e0e0e0');
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f0f0f0), to(#e0e0e0));
  background-image: -webkit-linear-gradient(top, #f0f0f0, #e0e0e0);
  background-image: -moz-linear-gradient(top, #f0f0f0, #e0e0e0);
  background-image: -ms-linear-gradient(top, #f0f0f0, #e0e0e0);
  background-image: -o-linear-gradient(top, #f0f0f0, #e0e0e0);
}


Any thoughts please as this is about to go live and is now being held up by this silly problem?

Thanks,

Steve
Posted
Comments
[no name] 29-Oct-13 6:02am    
can you show me the screen shot for this in mozila and in IE 9?
vbmike 29-Oct-13 9:59am    
It shows up light gray in IE9 for me. Maybe a conflict in css elsewhere.?? another css file for IE only??
Pablo Aliskevicius 29-Oct-13 10:41am    
What happens if you try startColorstr='#FFf0f0f0' instead of startColorstr='@from'? (Maybe the @from is not initialized to the background color, depending on browser settings).
Stephen Hewison 31-Oct-13 8:36am    
Thank you pablo! CSSLess isn't populating the filter component of the CSS properly.

1 solution

As stated by Pablo, in the comments.

it was the @from parameter in the CSS.

I was using CSSLess in VS2012 and for some reason it's struggling to populate the filter component of the style.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900