Forum Moderators: not2easy

Message Too Old, No Replies

How to fixate the background image?

what code do I use?

         

dailypress

6:51 pm on May 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is the code I found online:
<body style="background-image: url('test3.jpg'); background-repeat: no-repeat; background-position: center; background-attachment: scroll;"> color name <br><br><br></body>

<body style="background-image: url('test3.jpg'); background-repeat: no-repeat; background-position: center; background-attachment: fixed;"> color name <br><br><br></body>

However, it did not work.
As you scroll down the (gradient background image) does not change. Basicallly I would like the background image to be contact throughout the whole page,

Robin_reala

7:21 pm on May 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Which one were you using? The background-attachment:fixed one should work (even in IE6 as it’s on <body>).

dailypress

10:40 pm on May 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



using the moving background image. for some reason it doesnt work! any other ideas or codes available?