CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS background-attachment Property




CSS Background Attachment Property use to set a backgorund image in fixed position or to scroll with contain.


Property Values


Properties Value Description
Syntax background-attachment:value;
value   scroll
  fixed
  inherit
Allow to All Elements
Inherited No

Example-Code

<div style:"background:url("jix/img_nat.png") repeat;
background-attachment:fixed;height:150px;width:210px;
overflow:scroll;"> </div>
Online Try This Code Your Self....   »

Example-Result