fixed image that scrolls but not in body tag

liunx

Guest
Hi, is there anyway to make oh say this

<style type="text/css">
i.yummy{
background-image:url(<!-- m --><a class="postlink" href="http://www.boomspeed.com/eevailen/yummyspider.gif">http://www.boomspeed.com/eevailen/yummyspider.gif</a><!-- m -->);
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.I think you need to use the position: fixed selector:

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


Hope this helps

Adamhurray! thanks muchly, now my spider can look like hes real and not be stuck in the corner anymore :)
 
Back
Top