View Full Version : Fixed Div Backgrounds?


alibi13
04-18-2004, 10:11 PM
Sorry if this has already been answered, but I couldnt find it.

I have a div with a background image, and my div scrolls so how do I keep the background fixed?

salomeyasobko
04-18-2004, 10:17 PM
if i were you, i'd just use CSS to position the background without a DIV. the code would be:

<style type= "text/css">body {background-image: url(image.gif); background-position: ## pixels from top ## pixels from left; background-attachment: fixed; } </style>

edit the bold parts. hope that works for you :)