Background – Attachment

Background-Attachment Example in CSS

<html>
<head>
</head>
<body>
<div style=”background:blue url(logo.png) repeat top left;
width:200;
border:3;
height:150; font-size:14″>
<br><br><br><br><br><br><br><br><br>
</div>
<br><br><br><br><br><br><br><br><br>
<div style=”background-color:red;
background-attachment:fixed;
background-image:url(logo.png);
background-repeat:repeat;
background-position-x:top;
background-position-y:left;
width:200;
border:3;
height:150;
font-size:14″>
background-attachment is fixed.
</div>
</body>
</html>

 

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.