I'm setting the src for an image with css like this
#Banner {
content: url(../Banners/prussia-awesomeness.gif);
width: 1000px;
}
here's my image
<div id="Header" class="Header">
<img id="Banner" src="as"/>
</div>
the image loads in google chrome with the proper img src (../Banners/prussia-awesomeness.gif)
in internet explorer and firefox it keeps the src "as".
Does ie and ff not support loading image sources from css?
EDIT:
adding
#Banner:after {
content: url(../Banners/prussia-awesomeness.gif);
width: 1000px;
}
made it work in firefox, ie however still refuses to cooperate.
also tried adding :before (with : and ::), which made no difference in any browser