Copyright © tutorialspoint.com

CSS - background-attachment

next


next

Description:

background-attachment determines the tiling context and scroll state of a background image.

Possible Values:

Applies to:

All the HTML elements.

DOM Syntax:

object.style.backgroundAttachment= scroll | fixed;

Example:

<p style="background-image:url(/images/pattern1.gif); 
              background-attachment:scroll;">
This parapgraph has scrolling background image.
</p>

To Become more comfortable - Do Online Practice


next next

Copyright © tutorialspoint.com