![4 elements background 4 elements background](https://i.pinimg.com/originals/31/c4/2d/31c42d1f019db811222a445b4f23663d.jpg)
A value of 100% means that the right (or bottom) edge of the background image is aligned with the right (or bottom) edge of the container, or the 100% mark of the image will be on the 100% mark of the container. A value of 0% means that the left (or top) edge of the background image is aligned with the corresponding left (or top) edge of the container, or the 0% mark of the image will be on the 0% mark of the container. The percentage offset of the given background image's position is relative to the container. The fourth value is the offset for the second keyword. The second value is the offset for the first keyword.
![4 elements background 4 elements background](https://static8.depositphotos.com/1000519/1005/v/450/depositphotos_10050061-stock-illustration-floral-backgrounds.jpg)
![4 elements background 4 elements background](https://c8.alamy.com/comp/WP4TNJ/abstract-vector-background-design-rectangular-tube-element-vector-background-3d-vector-eps-10-vector-illustration-WP4TNJ.jpg)
If it is the third value, it is the offset for the second value. The or value, if it is the second value, is the offset for the first value.The first value is one of the keyword values top, left, bottom, right, or center.The default value is top left or 0% 0%.ģ-value syntax: Two values are keyword values, and the third is the offset for the preceding value:.This means, e.g., that top top and left right are not valid. If one value is left or right, then the other value may not be left or right. Note that: If one value is top or bottom, then the other value may not be top or bottom.If both values are or values, then the first defines X and the second Y. If the other value is top or bottom, then this value defines X, relative to the left edge. If the other value is left or right, then this value defines Y, relative to the top edge. If top or bottom are given, then this defines Y and the other value defines X. If left or right are given here, then this defines X and the other given value defines Y. One of the keyword values top, left, bottom, right.
![4 elements background 4 elements background](https://wallpapercave.com/wp/wp2540195.jpg)
This specifies the X coordinate relative to the left edge, with the Y coordinate set to 50%.Ģ-value syntax: one value defines X and the other defines Y. The other dimension is then set to 50%, so the item is placed in the middle of the edge specified. This specifies an edge against which to place the item.