Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-10-2012, 11:00 PM   PM User | #1
surreal5335
Regular Coder

 
Join Date: May 2008
Posts: 446
Thanks: 23
Thanked 5 Times in 5 Posts
surreal5335 is an unknown quantity at this point
cant get svg to show with css background image

so I am trying to use an svg file as a background image to make a background gradient with multi-stop for IE9.

I have checked my svf url by itself and it loads fine.
I have it setup so that only IE9 sees this declaration, also working fine

IE9 currently is overriding the rule with another in an external css file which is loaded before my background svg rule set.

I have set the background svg with !important to take precendence (no effect)

Here is my css structure:

<link href="style.css" rel="stylesheet" type="text/css" />

<!--[if gte IE 9]>
<style type="text/css">
.gradient {
background-image: url("gradient-grey.svg") !important;
}
</style>
<![endif]-->


IE9's inspector has told me there is an background-image: none; being declared over my svg in the external file. although unchecking this rule in the inspector and thus enabling the svg rule doesnt change anything in my page.

Any ideas would be appreciated
Ben
surreal5335 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:42 PM.


Advertisement
Log in to turn off these ads.