Last post Apr 30, 2012 07:38 AM by sumadevu
Mar 01, 2009 10:06 PM|xyzz1233|LINK
I've got some markup that looks like this:
<asp:Panel runat="server" HorizontalAlign="Center">
<img alt="" src="Background_Content.png" style="width:90%;" />
I need to be able to have the text and the image tag overlap below the text like a background while also being able to "stack" more content below without messing with any absolute or relative positioning. The closest thing I could think of to describe this
would be to use the CSS3 property background-size to stretch a background over the asp:Panel, but no browsers support CSS3. Is there any way to do this?
Thanks so much for your help!
CSS3 CSS ASP.NET asp:Panel Style Background
Mar 02, 2009 01:52 PM|xyzz1233|LINK
Anyone have any ideas? I'd really appreciate if someone could help. Thanks!
Mar 02, 2009 02:51 PM|NC01|LINK
I don't quite understand what you mean, but is it something like this?
<div id="testDiv" style="background-image:url(Images/YourImage.gif)">
Mar 02, 2009 07:15 PM|xyzz1233|LINK
Yeah, pretty much. I just need to stretch the background image, and I don't think there's a way to do that with CSS2.1, so I have the image tag and I'm trying to fake a stretched background image. That's the difficult part.
Mar 03, 2009 07:13 AM|NC01|LINK
The example that I posted stretches completely across the page, at least it did for me.
Mar 04, 2009 04:17 PM|xyzz1233|LINK
Dec 07, 2009 11:07 AM|jmiller6587|LINK
I have the same problem - with the background on a master page. Did you ever figure it out?
Dec 07, 2009 11:42 AM|bruce (sqlwork.com)|LINK
Dec 14, 2009 01:06 PM|jmiller6587|LINK
Thanks for the prompt reply - I'm a novice with Java script, you wouldn't happen to have an example would you?
Apr 30, 2012 07:38 AM|sumadevu|LINK
style="background-image: url(images.jpg); background-size:100% 100%;"