I have got a site i am busy creating but when i upload my site live, the one image does not show. Here is the code
<div id="adbox">
<div class="clearfix">
<img src="images/family-large.jpg" alt="Img" height="382" width="594">
<div class="detail">
<h1>Implementing Strategic and Effective Legal Solutions</h1>
</div>
</div>
</div>
and the css is as follows
.clearfix {
width: 960px;
margin: 0 auto;
}
.clearfix:after {
clear:both;
content:"";
display:block;
line-height:0;
height:100%;
}
Your path to your image is incorrect. You can easily test this by loading in an image you know will work. Lorem Flickr is great for testing this:
.clearfix { width: 960px; margin: 0 auto; } .clearfix:after { clear:both; content:""; display:block; line-height:0; height:100%; }
<div id="adbox"> <div class="clearfix"> <img src="http://www.loremflickr.com/382/594" alt="Img" height="382" width="594"> <div class="detail"> <h1>Implementing Strategic and Effective Legal Solutions</h1> </div> </div> </div>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.