Websites with backgrounds that do not change as you scroll down?

mdude85

Limp Gawd
Joined
Sep 8, 2001
Messages
435
Yo, I've seen some websites that have background images (usually large images) that do not "scroll" with the page. Background stays constant and rest of the page scrolls. Does anyone know how I can do this or a link to a website that shows me how? Thanks..
 

IBleedPurple

Weaksauce
Joined
Jun 5, 2002
Messages
95
Code:
<style>
body {background-image:url([url]http://www.twincityscape.com/ibleedpurple/images/board/board_bg.jpg[/url]); background-attachment:fixed;}
</style>

I have that on my ezboard at http://pub121.ezboard.com/bibleedpurple -- hope it helps. :)

(note - this should probably be in the programming/webmastering forum)
 

FlipperBizkut

[H]ard|Gawd
Joined
Sep 25, 2002
Messages
1,266
[emerges from under rock]

That's cool! I've never seen that before.

[/emerges from under rock]
 

MadJuggla9

2[H]4U
Joined
Oct 9, 2002
Messages
3,515
theres also a way to make it only repeat going one way *X axis or Y axis* its very helpful if you have a multires site and need a background on the page while also maintaining nondistorting images for headers/content size adjustment

i forgot the code *doh* but its very easy to find if you google it up im sure. hope this helps
 
Top