PDA

View Full Version : looking for a certain html code



The Ice Man
December 27th, 2001, 20:24
im rather certain this is a simple code, but still it illudes me :(


ok, i got a webpage, and i want to "lock" the background, so when u scroll down, all the crap on the page moves, but the background doesnt

could someone post the html code for that

thanks

gokuss4
December 27th, 2001, 20:55
<body background="fix"> i believe its that one i havent done it in a year so i dont know and besides i just go with bgcolors anyway

RatTrap
December 30th, 2001, 12:11
i sudgest you check the coding on one of my sites :D.. use stylesheets.. their like.. eh.. hmm.. better.. or something.. don't ask me why they are though.. i just get told that alot by ppl who are suposedly right.. *rolls his eyes*.. you know who you are :p..

mesman00
December 30th, 2001, 17:57
its called a watermark, heres the code, like RatTrap said it's a stylesheet:


<STYLE TYPE="text/css">
BODY {background-image: url(back.gif);
background-repeat: no-repeat;
background-position: 50% 50%;
background-attachment: fixed;}
</STYLE>

back.gif will be what you want your background to be, so just change it to the appropriate name.

and RatTrap, why are style sheets better??

The Ice Man
December 30th, 2001, 19:30
Originally posted by mesman00
its called a watermark, heres the code, like RatTrap said it's a stylesheet:


<STYLE TYPE="text/css">
BODY {background-image: url(back.gif);
background-repeat: no-repeat;
background-position: 50% 50%;
background-attachment: fixed;}
</STYLE>


code worked great dude, thanks alot :D

mesman00
December 30th, 2001, 20:25
no prob

RatTrap
December 31st, 2001, 08:10
coz theres so much else you can do with Styles.. also they don't follow your general html standard.. they have their own "decoder" in your browser.. depending on the browser.. and well that helps alot when working with netcrap and IE.. btw.. the watermark dose'nt work on netscape.. but theres ways around it.. but it's 8 am and i'll be damnd if i'm gonna answer that now!.. coz i'm tired!.. and i'm going to bed!.. so pfooi!! :p..

mesman00
December 31st, 2001, 20:55
8 am, and goin to bed, ur nuts!!!