Jump to content
kid turned bird

Please help with <body background> question!

Recommended Posts

hi, i've run into a problem loading a background/wallpaper for the web site i'm buildin'. I'm really new to this, and i'm using taco html edit, what i've tried doing is:<html> <head> <title></title> </head> <body><body bacground="imgp0048.jpg"> </body></html>but the browser is ignoring the background image that i specify. Is this a routing issue? Do i need to specify more info re the location of the image, also any info on the advantages of xhtml or different edits to taco are most welcome, thx kidturnedbird

Share this post


Link to post
Share on other sites

Hi I noticed you made a spelling error (wether on forum or as part of code, if you made same mistake in code it will not work, just getting obvious out of way first :) )The code you are looking for should look something like this:

<body background="imgp0048.jpg" />

Also if you have the image file within a folder you need to specify that folder aswell such as...

<body background="images/imgp0048.jpg" />

the 'images/' being the folder (which in your Hard Drive the img file is contained) You also need to close the <img> tag.To find the advantages and difference between XHTML follow this link:W3Schools XHTML IntroductionAny more questions let us knowRegards Col

Share this post


Link to post
Share on other sites

Also you have two opening body tags.

Share this post


Link to post
Share on other sites

thanks col and john eva...i'm still having the same probs.....do i have to fill in all of the other fields or should the background image load regardless? I mean, is doing the background the first thing or the last thing that I do? Is there an order?

Share this post


Link to post
Share on other sites

thanks col and john eva...i'm still having the same probs.....do i have to fill in all of the other fields or should the background image load regardless? I mean, is doing the background the first thing or the last thing that I do? Is there an order?

Share this post


Link to post
Share on other sites

there is no order about makeing a background just make sure that you dont break's any copy right laws.

Share this post


Link to post
Share on other sites

Right you have put the right image name in?Your using the right code so it can only be that your refering to an imge that is not there.Make sure you have it in the place you are refering to and make sure the name is correct.Is it local or on a server?If it is on a server have you uploaded the image?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...