keep background image to stay fixed when the page is scrolled

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest

    keep background image to stay fixed when the page is scrolled

    The technique is called watermarking.

    One simple way is to add bgproperties="fixed" to the body tag, like this:

    <body bgproperties="fixed">

    Note that this typically only works in Internet Explorer browsers.

    Another way of doing it that also works in later Netscape browsers (6.x & up) is to add this style script to the <head> of your page:

    <style>
    body {background-attachment:fixed}
    </style>
  • stevex
    Member
    • Apr 2014
    • 74

    #2
    This is a new concept for me.Thanks for sharing.

    Comment

    Working...