We can style the background of an element with the background property.
[background:#ffffff url(path_to_image)top left no-repeat fixed;]
This code can do attachment,colour,image,position and repeat.
We can also declare a colour for the background of an element using the background-colour property.
[background-colour: value;]
value can be:
- coloue name
- hexadecimal number
- RGB(RED GREEN BLUE) colour code
- transpaent
References:
Chapter 12:CSS background [Online], Retrieved 3/3/201
URL: http://www.cssbasics.com/chapter_12_css_backgrounds.htmlChapter 12:CSS background [Online], Retrieved 3/3/201
No comments:
Post a Comment