Background Image

  • Thread starter Thread starter John Parker
  • Start date Start date
J

John Parker

I would like to insert a background image, but all I get is the image
repeating over and over and it looks terrible.

Is there a way to have only one copy of the image show?

Also I have seen some sites where the background image stay in the centre
even when you scroll the page. Is this possible in FrontPage?

Thanks
John Parker
 
John:

You would solve both of these issues with CSS by including the following
stylesheet in the head of the page's markup. In other words you would
change this -

</head>

to this (assuming you want the background image on the page and not in some
other element) -

<style type="text/css">
<!--
body { background-attachment:fixed; background-repeat:none; }
-->
</style>
</head>

In FP, you can do this right in code view. If you want to use FP's UI to do
this, then (in FP 2003) you would edit the properties of the body tag by
right clicking in Design view, choosing Page Properties > Advanced > Body
Style > Format > Border > Shading > and that is where you get to choose the
image, the attachment, and the repeat. Kinda buried if you ask me....
 
Excellent, thank-you Murray.. John P.

Murray said:
John:

You would solve both of these issues with CSS by including the following
stylesheet in the head of the page's markup. In other words you would
change this -

</head>

to this (assuming you want the background image on the page and not in
some other element) -

<style type="text/css">
<!--
body { background-attachment:fixed; background-repeat:none; }
-->
</style>
</head>

In FP, you can do this right in code view. If you want to use FP's UI to
do this, then (in FP 2003) you would edit the properties of the body tag
by right clicking in Design view, choosing Page Properties > Advanced >
Body Style > Format > Border > Shading > and that is where you get to
choose the image, the attachment, and the repeat. Kinda buried if you ask
me....
 
Back
Top