Forum Home
Press F1
 
Thread ID: 71260 2006-07-31 07:24:00 Script pcuser42 (130) Press F1
Post ID Timestamp Content User
474996 2006-07-31 07:24:00 Three scripts (into one):

I need a script that centers the background image and resizes it to a specific size, and one that stops it from scrolling with the page. :help: please.
pcuser42 (130)
474997 2006-07-31 09:45:00 Hmmm, I don't quite get what you mean. Centers the background image? If you want to stop the background image from scrolling down with the page, you can "watermark" your page (somewhat irrelevant to this thread, since you are looking for a script that has this component built into it) by adding style="background-attachment: fixed" within the <body> tag of your webpage (hang on, webpage isn't it?).

e.g. <body background="images/buddylogo.jpg" style="background-attachment: fixed">


Cheers :)
Renmoo (66)
474998 2006-07-31 20:30:00 Okay, so the image needs to be in the center, like the desktop wallpaper does, but not quite the whole page. pcuser42 (130)
474999 2006-07-31 21:06:00 You need to learn CSS.

That can do exactly what you want very easily.
netchicken (4843)
1