PDA

View Full Version : Newbie Question


Rick
10-17-2002, 09:13 AM
I am going to be trying to make my first web page. After alot of asking friends and family they all came to one program. First page. I'm trying to find a section to add a background image. I have found insert image and choose background color. Where would I find insert background image?

Thanx Rick

HZR
10-17-2002, 09:20 AM
Use CSS, just put this in the head of your document.

<style type="text/css">
body {
background-image: url(yourimg.png);
}
</style>

You can also do that a little more "advanced", like how the image shall repeat, the position and so on.
Just ask and I'll show you.

DCElliott
10-17-2002, 09:39 AM
1St Page has a little wizard to help you with that.

Chose from the menu Format|Document Properties . . .
A dialog box will appear. You can chose just to have a background color, or color plus image. Additionally you can chose colors for text and links. After making your choices, 1st Page writes out the necessary body tag for you like this:<body background="file:///C|/web/images/background.gif" bgcolor="#FFFFFF" text="#330066" link="#3300FF" vlink="#993399" alink="#FF0000" bgproperties=fixed>That is really all there is to it. You have to replace the "./images/background.gif" with whatever your background graphic is to be.

Alternatively you could do your background with a stylesheet (look up information on CSS). Stylesheet information goes between the <HEAD></HEAD> tags at the start of your document If you use a style sheet you can make a background that stays in one place or perfectly centered as the text slides over it - a really cool technique!

<HEAD>
<STYLE TYPE="text/css" media="screen">
<!--
BODY
{ background : #FFFFFF;
background : url(./images/background.gif) no-repeat fixed 50% 50%;
color: #483D8B;
scrollbar-face-color:#0080C0;
font : .9em Verdana, Lucida, Geneva, Helvetica, sans-serif;
}
//-->
</STYLE>
</HEAD>

DE

Rick
10-17-2002, 12:29 PM
Thank you both for the reply. When I get home from work I will give both of your advice a try.

Cheers