In this tutorial you will learn about Cascading Style Sheets (CSS), Background, Background Color, Background image, Repeating background image, Background position and Background attachment.
To set the background color of an element, use the “background-color” property.
body
{
background-color: #FF0000;
}
This sets the background color of the document to red.
In this tutorial you will learn about Cascading Style Sheets (CSS), Applying CSS, External style sheets, Internal styles, Inline styles and Multiple style sheets
There are different types for specifying styles to be used with HTML documents, they can be specified in an external CSS file, inside the < head > element of the HTML document, or/and inline to be specific to a single HTML element, also there is the browser default style.
These styles will be cascaded in a single HTML documents at the following priority:
Inline style has the highest priority.
In this tutorial you will learn about Cascading Style Sheets (CSS), Units and Colors, Percentage, Values, Colors, References - Font and Text, Color and Background, Layout, Classification, Positioning and Pseudo-classes.
Percentage values have to be followed by “%”.
home |
about | submit a site | tags | site map | contact us | rss
© CSS Examples 2008 - 2011, All rights Reserved.

