Lucy Posted July 31, 2014 Share Posted July 31, 2014 (edited) I started using WAMPserver for my website so I can use PHP. My homepage has some images on it that won't work properly when loaded through the host. Is there a reason this could happen? Here's the relevant code HTML: <div class="gallery"> <div class="box"> <a href=""><div class="overlay"><h3>website name</h3><br/><p>website description</p></div></a> <img class="thumb" src="imagesimage1.jpg"> </div> CSS: .gallery { float:right; width:70%; clear:right; margin:0 20% 20% 0; padding:2%; background-color:rgba(149, 176, 178, 0.2); border-radius:0.25em; } .box { width:32%; position:relative; float:left; border:.5rem solid #FFE2CD; text-align:center; } .thumb { width:100%; } Strangely, the background image still works... it's a .PNG, but that won't be why, will it? Edited July 31, 2014 by Lucy Link to comment Share on other sites More sharing options...
dsonesuk Posted July 31, 2014 Share Posted July 31, 2014 <img class="thumb" src="imagesimage1.jpg"> = bad <img class="thumb" src="images/image1.jpg"> = good these images will show if images folder is in www folder www/images/ = localhost/images/ Link to comment Share on other sites More sharing options...
Lucy Posted July 31, 2014 Author Share Posted July 31, 2014 Oh! Yep, that works... thank you so much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now