Update index.md (#21043)
Added comment at the beginning of the css code.
This commit is contained in:
committed by
Paul Gamble
parent
cdc58a5512
commit
9242e9ee5f
@ -6,6 +6,7 @@ title: Background Size
|
|||||||
The background-size property specifies the size of the background images. You can set a length or a percentage, with the first value being the width and the second one being the height. You can also use one of the 5 keyword values:
|
The background-size property specifies the size of the background images. You can set a length or a percentage, with the first value being the width and the second one being the height. You can also use one of the 5 keyword values:
|
||||||
|
|
||||||
```css
|
```css
|
||||||
|
/* Background size property values that can be used */
|
||||||
.auto {background-size: auto;}
|
.auto {background-size: auto;}
|
||||||
.cover {background-size: cover;}
|
.cover {background-size: cover;}
|
||||||
.contain {background-size: contain;}
|
.contain {background-size: contain;}
|
||||||
|
Reference in New Issue
Block a user