February 22, 200917 yr HI there, I am in a real quandry here as I cannot get my image to appear on my page. The code I have used is as follows: <img src="images/angela.jpg" align ="left" alt="my pic" width="150" height="220" /> The image is on one folder down from the html document that calls for it. Please can anyone help? At the moment I can't see the woods for the trees, I've been stuck with this problem for days now. Please, Please can someone point out to me what I am doing wrong. Thanks in advance, Slooshy
February 22, 200917 yr Check that the image is stored in the correct place (i.e. in the images folder within the root of your site). Your code looks fine so it must be a referencing problem. Is the site online?
February 22, 200917 yr If you're absolutely sure that the path is correct, and the image exists in that folder, then it could be something else in your CSS which is causing it to be hidden (are you using CSS?), or I suppose it could be a corrupt image. If you put the full image path ( e.g. http://www.mydomain.com/images/angela.jpg ) into your browser address bar, does the image display? If you're using Linux hosting, have you made sure you're not using uppercase when it should be lowercase, and vice versa? If this is a live page on "teh Interwebs", not just something on your PC, it would be good to have a URL to check. EDIT: Ha! Beaten by a pigeon!
February 22, 200917 yr Do you have a link? Try this: <img src="../images/angela.jpg" align="left" alt="my pic" width="150" height="220" />
February 22, 200917 yr that should work, you should use css for to style it though. <img src="images/angela.jpg" alt="my pic" class="myimage" /> img.myimage { float:left; width:150px; height:220px; } Where have you put your picture in relation to the current folder?
February 22, 200917 yr Bocaj is correct. Instead of using align="left", give the image a class="image_description" and then style it as suggested by Bocaj using an external style instruction.
Create an account or sign in to comment