image in div doesn't display anything

Posted by fusion on Stack Overflow See other posts from Stack Overflow or by fusion
Published on 2010-04-09T11:03:41Z Indexed on 2010/04/09 11:13 UTC
Read the original article Hit count: 294

Filed under:
|
|
|
|

i'm trying to insert an image in a div container using css and html, but it doesn't display any image.

html code:

<div id="wrapper">
<div id="quoteContainer">
 <span class="start_img"></span>
</div>
</div>

css:

.start_img {
 background: url(image/img1.png); 
 border: dotted 2px black;
 width:200px;
 height:20px;
}

apart from the img, not even the border shows. i tried using the <img> tag in html to insert the image inside the div, that doesn't work either. is there anything wrong with the code?

© Stack Overflow or respective owner

Related posts about css

Related posts about css3