| Jednosta | Opis |
|---|---|
| dpi | punkty na cal |
| dpcm | punkty na centymetr |
| dppx | punkty na "px" |
<image> = <url> | <image-list> | <element-reference> | <gradient>
| Funkcja | Opis |
|---|---|
| url() | identyfikator pliku |
| image() | identyfikator obrazu |
| linear-gradient() | gradient liniowy |
| radial-gradient() | gradient radialny |
| repeating-linear-gradient() | powtarzanie gradiientu liniowego |
| repeating-radial-gradient() | powtarzanie gradiientu radialnego |
<gradient> = [
<linear-gradient> | <radial-gradient> |
<repeating-linear-gradient> | <repeating-radial-gradient> ]
| background: |
|---|
| linear-gradient( [ [ angle | [ to left|right || top|bottom ] ] ,]? color-stop[, color-stop]+ ) |
| np. background: linear-gradient(gray, white 20px) |
| linear-gradient(white,gray) | linear-gradient(white 20%,gray) | linear-gradient(white 20px,gray) |
| np. 60deg | to top | to right | to bottom | to left |
| to top left | to top right | to bottom left | to bottom right |
| background: |
|---|
| np. repeating-linear-gradient(gray, white 20px) |
| np. background: repeating-linear-gradient(gray, white 20px) |
| background: |
|---|
| radial-gradient([[shape || size] [at position]?, | at position,]? color-stop [, color-stop]+) |
|
shape = circle | ellipse size = closest-side | closest-corner | farthest-side | farthest-corner |
| radial-gradient(white,gray) | radial-gradient(white 20%,gray) | radial-gradient(white 20px,gray) |
| shape || size | closest-side | closest-corner | farthest-side | farthest-corner |
|---|---|---|---|---|
| circle | ||||
| circle |
| position | left | center | right |
|---|---|---|---|
| top | |||
| center | |||
| bottom |
| background: |
|---|
| np. repeating-radial-gradient(black, white 10px) |
| object-fit: | ||||
|---|---|---|---|---|
| fill; | contain; | cover; | none; | scale-down; |
![]() |
![]() |
![]() |
![]() |
![]() |
| object-position: |
|---|
| position |
*) [CSS3BG]
| image-resolution: | |
|---|---|
| from-image; || resolution && snap? | |
![]() |
![]() |
| image-orientation: |
|---|
| angle np. 180deg |
![]() |