Top Ad unit 728 × 90

Libreoffice

Libreoffice Writer

Background Attachment Property

 


 

Background Attachment Property

 

The property background-attachment property in CSS is used to specify the kind of attachment of the background image with respect to its container. It can be set to scroll or remain fixed. It can be applied to all HTML elements. 

 

Ex1- A Background-Image that will not scroll with the page.

 

CSS Code




 

 Output

 

 



Ex2- A Background-Image that will scroll with the page.(Put this code in the <style>………….</style> tag.)

 

CSS Code


 



Output

 



 

Background Attachment Property Reviewed by ADcomputercampus on December 13, 2023 Rating: 5

No comments:

Contact Form

Name

Email *

Message *

Powered by Blogger.