Added an example of background gradient with image (#29570)
Code sample of how to implement a CSS background gradient, provided a screenshot for demo purpose.
This commit is contained in:
committed by
Christopher McCormack
parent
35162199c6
commit
cc49ac0456
@ -116,6 +116,16 @@ A gradient is a transition between two or more colors and can be used via CSS si
|
|||||||
|
|
||||||
The syntax of a gradient background can be quite complex and is often still used with vendor prefixes due to inconsistencies between supported browsers.
|
The syntax of a gradient background can be quite complex and is often still used with vendor prefixes due to inconsistencies between supported browsers.
|
||||||
|
|
||||||
|
Below is an example of a background gradient:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
```css
|
||||||
|
header {
|
||||||
|
background-image: linear-gradient(to right, #069, #099);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
The [Colorzilla Gradient Editor](http://www.colorzilla.com/gradient-editor/) is a great online tool for generating custom gradients and the associated css markup.
|
The [Colorzilla Gradient Editor](http://www.colorzilla.com/gradient-editor/) is a great online tool for generating custom gradients and the associated css markup.
|
||||||
|
|
||||||
### Background – The Shorthand Property
|
### Background – The Shorthand Property
|
||||||
|
Reference in New Issue
Block a user