I am facing an issue with inserting an image in a div container using CSS and HTML. The image is not displaying properly.
Here is the HTML code:
<div id="wrapper">
<div id="quoteContainer">
<span class="start_img"></span>
</div>
</div>
And here is the CSS code:
#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;
}
Despite trying to add the image using the <img>
tag, nothing seems to be working as expected. Is there something wrong with the code?