View Full Version : Make a background image not scroll/ make it a watermark
SolidWing68
01-29-2003, 04:55 PM
I have an image I'd like to use for my homepage, but I don't want it to scroll, so I just want it to sort of like watermark the page. You know how it can be done? let me know
redhead
01-29-2003, 04:57 PM
in your <body> tag put this: style="background-attachment: fixed;"
does that do it? :thumbsup:
SolidWing68
01-29-2003, 05:01 PM
can you write the whole code because I got confused
redhead
01-29-2003, 05:07 PM
if you post the code you've got at the mo i'll show you where to put that.
SolidWing68
01-29-2003, 05:10 PM
I dont have any of the code yet, I want to know what it would be if I wanted to do this to my image
cg9com
01-29-2003, 05:32 PM
<body style="background-image:image.gif;background-attachment:fixed;">
ronaldb66
01-30-2003, 11:49 AM
That should be:
<body style="background-image: url(image.gif); background-attachment: fixed;">
Crosis
01-30-2003, 01:54 PM
there's an easier way to do this...
<BODY background="image.gif" bgproperties="fixed">
cg9com
01-30-2003, 07:37 PM
aah thanks ronald for correcting me, dunno how i messed that one up lol
Crosis:
background="" is depricated depending on what markup you are using.
and bgproperties="" is IE only
Crosis
01-30-2003, 10:45 PM
oops - sorry - my mistake
cg9com
01-30-2003, 11:21 PM
:) no worries
relyt
01-31-2003, 12:12 AM
<style>
BODY
{
background-attachment: fixed;
}
</style>
i find that one easier to use because you can add it to the page anywhere you want
As long as it in in HEAD. :)
relyt
02-01-2003, 02:03 AM
the one i posted doesnt have 2 be in the head.
Originally posted by relyt
the one i posted doesnt have 2 be in the head.
Most embedded css coding should be within the head section shouldn't it?
Only place STYLE is allowed. Browsers are sloppy but not all of them and not forever. :p
relyt
02-01-2003, 07:10 PM
you dont have to put the one i posted in the head. i use that one on all websites i make. never had a problem. never put them in the head.
redhead
02-01-2003, 07:56 PM
erm... "never put them in the head"??? interesting advice. you should put all <style> or <link rel="stylesheet">'s in the <head>...
put it in the head... doesnt take much effort and that is where it is "correct"...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.