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..
 
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)
 
[emerges from under rock]

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

[/emerges from under rock]
 
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
 
Back
Top