HTML code website make images appear?
Hi,
I am in the process of making my own website. right now i am just typing in codes into notepad until i finish th site. the problem is i put a background image on my page and i can see it but when i sent it to one of my friends they said they couldn't see the background image but could see everything else. Anyone know how to fix this? Thanks for any help!!
the image is saved in my documents where should i upload it to first?
Public Comments
- everything you ever want to know about html is here: http://www.w3schools.com/html/default.asp I think the answer for the problem you are having can be answered here: http://www.w3schools.com/html/html_backgrounds.asp
- you are probably loading the background image from a local source try uploading it some were then using that as were u get the picture from that should fix it
- because the bg image is on YOUR machine only so you need to send the BG image to them, also...and make sure the bg image has a relative path and not an absolute path... i.e. relative path: images/mypic.jpg absolute path: file:///C|/Documents and Settings/pc/My Documents/My Pictures/mypic.jpg or if the image is on some site, the path can be like this: (don't click on this...just an example) http://www.yahoo.com/images/mypic.jpg
- They probably could not see the bg image as the path to your image was not online or you did not include the full path to it to be pull when they viewed it. Should use something like this: <head> <style type="text/css"> body { background: #fff url(http://URL.com/image_name.jpg) no-repeat scroll center; } </style> </head> If it is a tileable image then use: <head> <style type="text/css"> body { background: #fff url(http://URL.com/image_name.jpg) repeat scroll center; } </style> </head> If you want image fixed and page contents to scroll over it: <head> <style type="text/css"> body { background: #fff url(http://URL.com/image_name.jpg) repeat fixed center; } </style> </head> Ron
- You need to send the image file associated with the HTML documents along with the files also. You could also host the image and put in the url in your code.
Powered by Yahoo! Answers