Click to See Complete Forum and Search --> : fixed image that scrolls but not in body tag


eevailen
03-26-2003, 01:49 AM
Hi, is there anyway to make oh say this

<style type="text/css">
i.yummy{
background-image:url(http://www.boomspeed.com/eevailen/yummyspider.gif);
position: absolute; top:1; right:5;
height:300;
width:50;}
</style>


to be more like


<style type="text/css">
body
{
background-image:
url("../images/smiley.gif");
background-repeat:
no-repeat;
background-attachment:
fixed
}
</style>


without putting it in the body{? i tryed just the attachment and no repeat, and no go on that, doesnt even want to show up at all.

AdamGundry
03-27-2003, 01:33 PM
I think you need to use the position: fixed selector:

<style type="text/css">
i.yummy{
background-image:url(http://www.boomspeed.com/eevailen/yummyspider.gif);
position: fixed;
top: 1;
right: 5;
height: 300;
width: 50;}
</style>


Hope this helps

Adam

eevailen
03-27-2003, 07:32 PM
hurray! thanks muchly, now my spider can look like hes real and not be stuck in the corner anymore :)