1/22/2005

CSS Floating Image

Ever wonder how it is done ? Well heres the code. a picture at the top right will always stay there no matter how you scroll the page.



<style type="text/css">
<!--
body
{
  background-attachment: fixed;
  background-image: url;
  background-repeat: no-repeat;
  background-position: right top;
}
-->
</style>

change the url with the correct image filename you want to appear.


1 comment:

  1. I've learn several good stuff here. Certainly value bookmarking for revisiting. I wonder how much effort you set to make this sort of wonderful informative website.

    Feel free to visit my site ... www.strongman.pl

    ReplyDelete