HTML CSS CSS Color
HTML CSS examples for CSS:Color
HOME
HTML CSS
CSS
Color
Description
Click the following links for the tutorial for CSS and Color.
Extended color keywords defined in CSS 3 specification.
Basic color keywords defined in CSS 2.1 specification.
Color Values
RGB Color Values
Transparent Color
Functional Notation
Color Function
Set background color with rgba() function
Use rgba color function to set background color
Use HSL color function to set background color
Use HSLA color to set background color
Use Opacity and color together
Top to bottom Linear gradients
Left to right Linear gradients
Diagonal Linear gradients starts at top left and right
Multi color Linear gradients
Radial Gradients
Repeat Radial Gradients
A linear gradient that starts from the left. It starts red, transitioning to blue:
A linear gradient that starts at top left (and goes to bottom right):
A linear gradient with a specified angle:
A linear gradient with multiple color stops:
A linear gradient with transparency:
A radial gradient with differently spaced color stops:
A radial gradient with the shape of a circle:
A radial gradient with different size keywords:
Different repeating linear gradients:
Legal Color Values