Home All Groups Group Topic Archive Search About

positioning a watermark on a web page regardless of screen size

Author
25 Jul 2006 5:50 PM
Cindy H
Hi

I'm would like to use a watermark for a background on my web pages.
I used the style builder in Visual Studio.Net to add this as a background.
It inserted the code in the <body>
The problem is on smaller screens this watermark moves up behind the menu
instead of being centered on the page.
Does anyone know how I can overcome this problem?

Thanks,
CindyH

Author
25 Jul 2006 6:21 PM
MyndPhlyp
"Cindy H" <nonn***@nowhere.com> wrote in message
news:OykqGLBsGHA.1192@TK2MSFTNGP04.phx.gbl...
> Hi
>
> I'm would like to use a watermark for a background on my web pages.
> I used the style builder in Visual Studio.Net to add this as a background.
> It inserted the code in the <body>
> The problem is on smaller screens this watermark moves up behind the menu
> instead of being centered on the page.
> Does anyone know how I can overcome this problem?

Not a Visual Basic question. Wrong group. Regardless...

What probably got inserted into the <body> tag was something along the line
of:

background="somepath/someimage.jpg"

The default HTML behavior is for the background to scroll with the page.
Adding this to the <body> tag:

bgproperties="fixed"

will "freeze" the background.

You might want to check out the HTML and CSS documentation at:

http://www.w3.org

They are THE authoritative site.