hi everybody. I am just 2weeks old in the webprogramming.
I have a problem.
-I upload the picture.png into my public_html/image folder.
-I use this code on my page to display this image:
<img src="images/picture.png" width="325" height="140" style="margin-left: 25px">
but the picture is not there. i also tried other browsers. and other pictures. sameā¦
Anybody could help, how should I display images?
(sorry my bad english)
tpolis
May 28, 2012, 8:52am
#2
You made an error in the code. It is imagE/picture.png . You added an extra āsā in the code.
I fixed it, but still doesnāt work.
Edit:
I use the āAnother File Managerā to upload my images, and also in the file manager the pictures doesnāt work.
(I click āviewā, and there is no picture just a small icon)
Itās a joke now, I AM VERY VERY BEGINNER!
http://test44.hostoi.com/
dx4
May 28, 2012, 11:09am
#6
In the page you provided there isnāt the tag you showed us in your first post thoughā¦
There is an IMG tag on the site:
<img src="http://www.000webhost.com/forum/sources/open.png" width="325" height="140" style="margin-left: 25px">
How exactly did you upload the files?
Did you use the file manager in your control panel?
sorry. i was just trying to rename folders.
So.
NOW:
the image (āopen.pngā) is in the āsourcesā folder.
The HTML code is
<img src="sources/open.png" width="325" height="140" style="margin-left: 25px">
EDIT:
The only working picture is bg.png in the same āsourcesā folder .
with this code:
<div id="main_all" style="background-image: url(sources/bg.png);">
dx4
May 28, 2012, 12:42pm
#9
Now the image is displayed.
Perhaps you had a mistake in the path.
I donāt understand. For me, still WRONG!
dx4
May 28, 2012, 12:57pm
#11
The path is the sources/open.png.
Maybe the images/picture.png you had before had some mistake in it. Anyway, the problem is now solved.
If you wish to rename the folder be sure to alter the path in the img tag also.
P.S. add alt text, it helps when the img is not available for any reason.
example:
<img scr="cool.jpg" alt="cool" />
PROBLEM SOLVED!
i donāt know how it help, but i put the css in the same folder where the index.html isā¦
not the path was wrong, I write it correctly. now working. ^^
I have similar problem, cant display image, this is the url http://jpstrainingwb.netne.net/
need assistance.
Hi,
You must change the following line of code below:
<img src="public_html/Images','JPSLogo.gif'"/>
For this line:
<img src="Images/JPSLogo.gif'"/>
anon3087402:
Hi,
You must change the following line of code below:
<img src="public_html/Images','JPSLogo.gif'"/>
For this line:
<img src="Images/JPSLogo.gif'"/>
Done that but still no show!
Hi,
There is a small bug in the code that I have. I left without deleting a single quote ā at the end.
The correct code is:
<img src="Images/JPSLogo.gif" alt="logo" />
Hurray!,
it did the trick, thanks a million and be bless