View previous topic :: View next topic |
Author |
Message |
5digits -
Joined: 19 Aug 2006 Posts: 17
|
Posted: Sat Aug 19, 2006 7:45 am Post subject: No image |
|
|
I dont know what is the problem actually. Has I want to publish my website on the net, I have put the index.html and images under htdocs folder.
When I visit 127.0.0.1 only my black background appears but not the image? How could I fix this problem? |
|
Back to top |
|
|
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Sat Aug 19, 2006 9:20 am Post subject: |
|
|
Fix your HTML code. _________________
"Invent an idiot proof webserver and they'll invent a better idiot..." |
|
Back to top |
|
|
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Sat Aug 19, 2006 12:07 pm Post subject: |
|
|
The body-tag should look like this:
Code: | <body background="images/your-bg.png"> |
Sure, you could do it with CSS as well, but I perfer the old style. |
|
Back to top |
|
|
abyssisthebest -
Joined: 30 Jun 2005 Posts: 319 Location: Boston, UK
|
Posted: Sat Aug 19, 2006 1:06 pm Post subject: |
|
|
The code for CSS is:
Code: |
body{
background-image:url("./images/bg_image.gif");
}
|
_________________ My online Portfolio |
|
Back to top |
|
|
5digits -
Joined: 19 Aug 2006 Posts: 17
|
Posted: Sat Aug 19, 2006 6:36 pm Post subject: |
|
|
Thank you guys! I solved this issue just by publishing the website directly to the htdocs. :) |
|
Back to top |
|
|
|