For Neopets ONLY discussion.
Topic locked

Need HTML help...One thing about backgrounds...

Sat Jul 10, 2004 2:44 pm

If I want my background in my userlookup to be fixed, I mean that if I scroll the page, it's gonna stay fixed, and only the words will scrollm which code should I use?

Sat Jul 10, 2004 2:56 pm

<style type="text/css">
body {background: url(http://your url); background-attachment: fixed;background-position:bottom; background-repeat:no-repeat;
background-color:#000000} </style>

You may not need the position command, it kind of depends on the size of your background. The code I gave you? The background would not have covered the whole page, so by using position and adding the background color, it looks like it is one large background.

Sat Jul 10, 2004 3:00 pm

everconfused wrote:<style type="text/css">
body {background: url(http://your url); background-attachment: fixed;background-position:bottom; background-repeat:no-repeat;
background-color:#000000} </style>

You may not need the position command, it kind of depends on the size of your background. The code I gave you? The background would not have covered the whole page, so by using position and adding the background color, it looks like it is one large background.

Thanks a lot! <3, NOw, i just need a fixed background... (LOL)

Sat Jul 10, 2004 3:03 pm

Any background can be fixed, meaning it won't move when you scroll down the page. As to whether it's a single large image as the background or a smaller image that, unless you use the no repeat command, will tile is another matter. All backgrounds will automatically tile unless it's really big.
Topic locked