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:
#quoteContainer {
color: #898989;
background:#F9F9F9;
border: solid 1px #ddd;
border-radius:10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
box-shadow: 0px 0px 10px #888;
-moz-box-shadow: 0px 0px 10px #888;
-webkit-box-shadow: 0px 0px 10px #888;
margin:65px auto;
padding:15px;
width:500px;
}
.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?