Hi!
I have a strange problem with my html and css images.
An image i want to insert in my webpage only displays a red cross when i try it the normal way. When i set it as a background through CSS it displays fine.
My code for when it does not display:
HTML:
CSS:
It works fine with
HTML:
CSS
I would prefer the first option but i can't make it work. I don't think it is relevant but my problem occurs now when i am designing a wordpress theme...
Any tips?
I have a strange problem with my html and css images.
An image i want to insert in my webpage only displays a red cross when i try it the normal way. When i set it as a background through CSS it displays fine.
My code for when it does not display:
HTML:
Code:
<div id="rss">
<img src="img/rss.jpg" width="56" height="56" alt="RSS">
</div>
CSS:
Code:
#rss{
position:absolute;
top:90;
right:20;
}
It works fine with
HTML:
Code:
<div id="rss">
</div>
CSS
Code:
#rss{
position:absolute;
top:90;
right:20;
width:58;
height:58;
background-image:url(img/rss.gif);
}
I would prefer the first option but i can't make it work. I don't think it is relevant but my problem occurs now when i am designing a wordpress theme...
Any tips?