Update, added vw, vh example to values part index.md (#18964)

* Update index.md

vw, vh values added

* update: correctly added vw and vh units
This commit is contained in:
pakchrishtml
2018-10-15 23:06:21 -04:00
committed by Quincy Larson
parent f78d4eedfc
commit 88f8389cec

View File

@ -11,9 +11,10 @@ The background-size property specifies the size of the background images. You ca
.contain {background-size: contain;}
.initial {background-size: initial;}
.inherit {background-size: inherit;}
/* Percentage and pixel can also be used */
/* Percentage, pixel, and viewport units can also be used */
.pixel {background-size: 50px 50px;}
.percentage {background-size: 50% 50%;}
.view {background-size: 50vw 50vh;}
```
To set this property on multiple background images separate values by comma: