From e91089ccd67728f7759579eb4ee0b5825f484a97 Mon Sep 17 00:00:00 2001 From: Yash Srivastava Date: Sun, 10 Mar 2019 19:30:11 +0530 Subject: [PATCH] Added Background Attachment details. (#30016) * Added Background Attachment details. Added the information on how to use background-attachment css property * Added Background Attachment details added the use of background-attachment property of css * Add code formatting and reword --- guide/english/css/css3-backgrounds/index.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/guide/english/css/css3-backgrounds/index.md b/guide/english/css/css3-backgrounds/index.md index a28d2cc2be..3aa9131293 100644 --- a/guide/english/css/css3-backgrounds/index.md +++ b/guide/english/css/css3-backgrounds/index.md @@ -65,6 +65,19 @@ If you do not want the background image to scroll with the rest of the page, use background-attachment: fixed; ``` +### Background Attachment + +The background-attachment property sets whether a background image will scroll with the rest of the page, or would remain fixed. + +```css + background-image: url("GitHub-Mark.png"); + background-repeat: no-repeat; + background-attachment: fixed; +``` + +Valid Property Values: scroll, fixed, initial, local, inherit + + ### Shorthand property You can pass all the properties in one super-property: