Skip to content

Commit

Permalink
Single value lengths (freeCodeCamp#19399)
Browse files Browse the repository at this point in the history
Added note for auto value if only one length parameter is specified.
  • Loading branch information
Ninjirate authored and QuincyLarson committed Oct 16, 2018
1 parent 7ed4df2 commit 0e4345f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/pages/guide/english/css/background-size/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The background-size property specifies the size of the background images. You ca
.percentage {background-size: 50% 50%;}
.view {background-size: 50vw 50vh;}
```
Note: If using pixel or percentage for length and you only specify one value,
the second one will be set to auto by default.

To set this property on multiple background images separate values by comma:
```css
Expand Down

0 comments on commit 0e4345f

Please sign in to comment.