Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<body background="images/background.jpg">? 1

Status
Not open for further replies.

juandiegomc

Programmer
Apr 25, 2003
60
US
Hello,

Does one have to change the jpgs etc.

<body background=&quot;images/background.jpg&quot;>

They did work and now?

juandiegomcc@afirmacion.com
 
You'll need to specify the path and file name of your image. <body background=&quot;images/background.jpg&quot;> will only work if you have a file called &quot;background.jpg&quot; in a folder called &quot;images&quot; on your server.

If your file is called &quot;site_bg.jpg&quot; and is in the &quot;pictures&quot; folder, then you will need:

<body background=&quot;pictures/site_bg.jpg&quot;>

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Do I have to refresh my server all my .jpgs since it used to

to work and I uploaded the picture background.jpg

onto my web folder called images???? It should work cause

I see that background.jpg in my images.folder on my server??

Any ideas or help?

juandiegomcc@afirmacion.com
 
Could you post a link for me to see?

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
No it is on the second page and the button is way

down by the counter at the bottom of the index.

the second page has the <body background=&quot;images/background.jpg&quot;>

juandiegomcc@afirmacion.com
 
OK, problem is that you have two <body> tags. You should only ever have one. You need to get rid of the one at the top of the page that looks like &quot;<body background=&quot;images/background.jpg&quot;>&quot;:

And change the one that reads:
[tt]
<body lang=ES style='tab-interval:35.4pt'>

to:
<body lang=ES style='tab-interval:35.4pt' background=&quot;images/background.jpg&quot;>
[/tt]

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Also note that the code you have searches the background in:


I have checked your site and noticed that the images folder is not actually in basededatos folder but in the root. So change your code accordingly:
Code:
<body lang=ES style=&quot;tab-interval:35.4pt&quot; background=&quot;../images/background.jpg&quot;>
or
<body lang=ES style=&quot;tab-interval:35.4pt&quot; background=&quot;/images/background.jpg&quot;>
Hope it helps.
 
Better still:
[tt]
<body lang=ES style=&quot;tab-interval:35.4pt&quot; background=&quot;/images/background.jpg&quot;>
[/tt]
This specifies a path relative to the HTML root directory rather than the current directory, so it will always use as your background image, regardless of the directory your HTML file is in. This means you can juggle your site around without breaking the link.


-- Chris Hunt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top