---
title: "background-attachment property in CSS"  
description: "background-attachment property in CSS"  
author: "Anonymous User"  
published: 2013-06-14  
updated: 2013-06-15  
canonical: https://www.mindstick.com/forum/1105/background-attachment-property-in-css  
category: "css-css3"  
tags: ["css-css3"]  
reading_time: 1 minute  

---

# background-attachment property in CSS

Hi,\
What is use of [background](https://www.mindstick.com/articles/65/how-to-change-background-color-of-tab-control-in-c-sharp)-attachment [property](https://www.mindstick.com/blog/205/property-notification-in-c-sharp) in [css](https://www.mindstick.com/forum/514/background-gradient-ie7-css-problem)?\
Thanks in advance.

## Replies

### Reply by AVADHESH PATEL

Hi,\
The background-attachment property sets whether a background image is fixed or scrolls with the rest of the page.\
**e.g.** \

```
body{ background-image:url('smiley.gif');background-repeat:no-repeat;background-attachment:fixed;}
```


---

Original Source: https://www.mindstick.com/forum/1105/background-attachment-property-in-css

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
