Group annotations on this page
-
halbac05 on 2008-11-24This website talks about all that you could want to know about adding background to your web page. This includes how to position a background image, how to repeat a background image, how to place a background image, and how to set a fixed background image. -
vancej on 2008-12-19This page gives examples of what a css page should look like when you try to put in a background. It has a lot of different scenarios.
This link has been bookmarked by 45 people . It was first bookmarked on 14 Jul 2006, by Deng Jianguo.
-
15 Dec 09
-
17 Nov 09
-
17 Oct 09
-
09 Oct 09
-
20 Sep 09
-
20 Aug 09
-
- background-color
- background-image
- background-repeat
- background-attachment
- background-position
When using the shorthand property the order of the property values are:
It does not matter if one of the property values are missing, as long as the
ones that are present are in this order.
-
-
13 Aug 09
-
11 Aug 09
-
- background-color
- background-image
- background-repeat
- background-attachment
- background-position
-
- background-color
- background-image
- background-repeat
- background-attachment
- background-position
- 28 more annotations...
-
-
background
-
color
-
- background-color
- background-image
- background-repeat
- background-attachment
- background-position
-
background-repeat
-
Background Color
-
specifies the background color of an element
-
The background color of a page is defined in the body selector:
-
The background color can be specified by:
-
- name - a color name, like "red"
- RGB - an RGB value, like "rgb(255,0,0)"
- Hex - a hex value, like "#ff0000"
-
Background Image
-
specifies an image to use as the background of an element.
-
By default, the image is repeated so it covers the entire element.
-
set like this
-
Background Image - Repeat Horizontally or Vertically
-
If the image is repeated only horizontally (repeat-x),
-
Background Image - Set position and no-repeat
-
Showing the image only once is specified by the background-repeat property
-
background-repeat:no-repeat
-
The position of the image is specified by the background-position property
-
background-repeat:no-repeat;
background-position:top right -
Background - Shorthand property
-
there are many properties to consider when dealing with backgrounds
-
it is also possible to specify all the properties in one single property. This
is called a shorthand property -
The shorthand property for background is simply "background":
-
body {background:#ffffff url('img_tree.png') no-repeat top right}
-
When using the shorthand property the order of the property values are:
-
All CSS Background Properties
-
The number in the "CSS" column indicates in which CSS version the property is
defined (CSS1 or CSS2).Property Description Values CSS background Sets all the background properties in one declaration background-color
background-image
background-repeat
background-attachment background-position
inherit1 background-attachment Sets whether a background image is fixed or scrolls with the rest
of the pagescroll
fixed
inherit1 background-color Sets the background color of an element color-rgb
color-hex
color-name
transparent
inherit1 background-image Sets the background image for an element url(URL)
none
inherit1 background-position Sets the starting position of a background image top left
top center
top right
center left
center
center
center right
bottom left
bottom center
bottom right
x%
y%
xpos ypos
inherit1 background-repeat Sets if/how a background image will be repeated repeat
repeat-x
repeat-y
no-repeat
inherit1
-
-
-
24 Jun 09
-
24 Apr 09
-
05 Feb 09
-
13 Jan 09
-
19 Dec 08
Joan VanceThis page gives examples of what a css page should look like when you try to put in a background. It has a lot of different scenarios.
-
24 Nov 08
Jacquelyn HalbachThis website talks about all that you could want to know about adding background to your web page. This includes how to position a background image, how to repeat a background image, how to place a background image, and how to set a fixed background image.
-
07 Nov 08
-
30 Aug 08
-
06 Aug 08
-
13 Apr 08
-
10 Mar 08
-
06 Feb 08
-
18 Oct 07
-
18 Jun 07
-
27 Mar 07
-
14 Jul 06
-
12 May 06
-
05 Mar 05
-
30 Jun 04
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.