CSS background properties
With CSS background properties, you can define how the background of various elements is displayed.
This tutorial focuses on:
- Setting a background color
- Setting a background image
Setting a background color
You can use CSS to set the background color of various elements including the webpage itself, tables, textboxes and links.
The background color of an element is set with the background-color property. You can specify the background color of an element with a color name, an RGB value, or a hexadecimal value.
Setting a background image
You can use CSS to set a background image for various elements including the webpage itself and tables.
The background image of an element is set with the background-image property. The value this property takes should be the location of the image specified within a url() identifier.