Wednesday, December 09, 2009
And yes it was.

Turns out I was adding a style in my code-behind, like this:

               spanImage.Style.Add("background", "url(" + imagesFolder + imgFileName + ")" + " no-repeat;");

The HTML in front, the span already had the background property set.

In IE, the browser happily interprets this as a last-one-in-wins, as so:

<span id="Template_ctl25_contentImageRight_spanImage" class="frame-video float-left" style="background-image:url(_includes/images/content/pictures/pic1.jpg);background:url(/RFL2010/images/about.jpg) no-repeat;;">

whereas FF 'chokes' (correctly?) and disregards the invalid second attempt to set the background.

There will be a genuine technical explanation for this, if anyone knows then feel free to leave a comment!

Wednesday, December 09, 2009 6:39:18 PM (GMT Standard Time, UTC+00:00) | Comments [1] | ASP.NET | Web Design#
Sunday, December 20, 2009 7:59:18 AM (GMT Standard Time, UTC+00:00)
Hi,

not sure if this what you're asking for, but I always use the indexer on the attributes collection instead of adding them; the end result is that I never get the dreaded duplicate issue.
Comments are closed.
Search
Archive
Links
Categories
Admin Login
Sign In
Blogroll