CSS - BACKGROUNDS :
To add background effects , properties and decoration to document or any element use css background properties .
This property specifies the background color used in the background of a document . Using background-color can add any color to background .
SYNTAX :
{body background-color:color_name/color_number;}
EXAMPLE :
{body background-color:red;}
2. CSS background-image :
This property specifies how many background images added to the background of document. Using this property can add any background image .
SYNTAX :
body{
background-image:url(image_name);
}
EXAMPLE :
body{
background-image:url(flower.png);
}
3. CSS background-size :
This property specifies the size of background . Using background-size property can add every size to background .
VALUES :
- auto
- percentage
- initial
- length
- cover
- contain
- inherit
SYNTAX :
background-size:value;
EXAMPLE :
background-size:percentage;
4. CSS background-attachment :
The background image used in the document is fixed it means it does not scroll with the whole document .
VALUES :
- scroll
- fixed
- inherit
- local
- initial
SYNTAX :
background-size:attachment;
EXAMPLE :
background-size:fixed;
5. CSS background-position :
This property specifies the background image position in document. Using background-position property can add any needed position to background image .
VALUES :
- center top
- center bottom
- center center
- left top
- left bottom
- left center
- right top
- right bottom
- right center
- x%y%
6. CSS background-repeat
Using background-repeat property can repeat background image .
SYNTAX :
background-repeat:value;
Values :
- repeat-x
- repeat-y
- no-repeat
- initial
- inherite
Example :
background-repeat:repeat;
CSS - TEXT DECORATIONS :
The text-decoration property is used to add decorations to text or content . It applies decoration for text .
Types :
- none : no decoration to text
- underline : underline is added to text
- overline : line is drawn above text
- line-through : line is drawn through middle of text
- blink : I adds blinking effect to text
CSS - LINKS :
- a:link : It displays color for unvisited links
- a:visited : It displays color for visited links
- a:hover : It displays color when we move cursor/pointer on text .
- a:active : It displays color for active link