Making backgrounds.

For requests for help from CG administrators, Wranglers, and experienced CG members. Please read the FAQ before posting. Also look at CG Wiki for tutorials and how-tos written by other CG webtoonists.
Post Reply
User avatar
Xtraman
Newbie
Posts: 12
Joined: Sat Dec 04, 2004 10:43 am
Location: Iowa, USA
Contact:

Making backgrounds.

Post by Xtraman »

ok.. well I figured out almost everything else... but when it comes to putting a image in the background I saw on the forums that the code is something like <body background="/images/background.gif"> but uh... where do I put it? Cause I can't get the background to show up. This is probably a repetitive question but I couldn't find a post that helps.

Travis
XTRAMAN

Moghendhim
Regular Poster
Posts: 46
Joined: Mon Mar 01, 2004 4:14 pm
Location: The Wasteland
Contact:

Post by Moghendhim »

Well, the best thing to do is open up your page in notepad, or some other text editor, and use the "find" or "search" function for the tag <body>. Then add the 'background' information to it. It's usually in the top third of the document, and every html document has one.
I did not possess you, but I can blow up history.
Image

User avatar
Rkolter
Destroyer of Words (Moderator)
Destroyer of Words (Moderator)
Posts: 16399
Joined: Tue Jun 24, 2003 4:34 am
Location: It's equally probable that I'm everywhere.
Contact:

Post by Rkolter »

To better answer your question...

1) If you mean, where do you put the body tag, you put it near the top of the page... personally I do this:

<html>
<title>example</title>
<body background=.....>

I suggest using a complete URL, ie:
<body background="http://yoursite.keenspace.com/images/foobar.jpg">

Like Moghendhim said, if there's already a <body> tag, just add the background information... don't put a second body tag into your document.

By the by, be sure to close the body tag at the end of your document.

...
...
</body>
</html>


2) If you mean, where do you put your IMAGE, you put it in your images folder.
Image Image ImageImage
Crossfire: "Thank you! That explains it very nicely, and in a language that someone other than a physicist can understand..."

Denial is not falsification. You can't avoid a fact just because you don't like it.
"Data" is not the plural of "anecdote"

User avatar
Xtraman
Newbie
Posts: 12
Joined: Sat Dec 04, 2004 10:43 am
Location: Iowa, USA
Contact:

Post by Xtraman »

Thanks a lot! I will try to get this working now. Thanks again for the help!
:lol:
Travis

User avatar
Xtraman
Newbie
Posts: 12
Joined: Sat Dec 04, 2004 10:43 am
Location: Iowa, USA
Contact:

Post by Xtraman »

eh... I don't have a <body> tag...the only thing that says body is the </body> thing at the end. So if I am putting a body tag in.... where does that go?

User avatar
Rkolter
Destroyer of Words (Moderator)
Destroyer of Words (Moderator)
Posts: 16399
Joined: Tue Jun 24, 2003 4:34 am
Location: It's equally probable that I'm everywhere.
Contact:

Post by Rkolter »

xtraman wrote:eh... I don't have a <body> tag...the only thing that says body is the </body> thing at the end. So if I am putting a body tag in.... where does that go?
The top, basically. After the header (ie, after </head>), or if there's no header, after the <html> tag.
Image Image ImageImage
Crossfire: "Thank you! That explains it very nicely, and in a language that someone other than a physicist can understand..."

Denial is not falsification. You can't avoid a fact just because you don't like it.
"Data" is not the plural of "anecdote"

Post Reply