Hi All
In a .NET 2005 web application I am using themes to control my UI.
App_Themes
---Ford
---Images
---rvname-logo.gif
---Styles
---Default.css
In the themes stylesheet I have the following style:
and in my aspx page I have the following html:
My problem is that the image src is rendered as:
which is not setting the image src attribute.
If I change the stylesheet to:
it renders the same html but correctly sets the background image but this is no use to me as it shows a broken image on top of the background because it has not been set.
Has anyone else come across this? Does anyone know how to fix this?
Any help appreciated.
TIA
Smeat
In a .NET 2005 web application I am using themes to control my UI.
App_Themes
---Ford
---Images
---rvname-logo.gif
---Styles
---Default.css
In the themes stylesheet I have the following style:
Code:
img.logo
{
src: url(../Images/rvname-logo.gif);
}
and in my aspx page I have the following html:
Code:
<asp:Image runat="server" CssClass="logo" Width="600" Height="48" ID="img1" />
My problem is that the image src is rendered as:
Code:
<img id="img1" class="logo" src="" style="height:48px;width:600px;border-width:0px;" />
which is not setting the image src attribute.
If I change the stylesheet to:
Code:
background-image: url(../Images/rvname-logo.gif);
it renders the same html but correctly sets the background image but this is no use to me as it shows a broken image on top of the background because it has not been set.
Has anyone else come across this? Does anyone know how to fix this?
Any help appreciated.
TIA
Smeat