This link has been bookmarked by 23 people . It was first bookmarked on 27 Apr 2008, by Nicholas Stewart.
-
27 Aug 15
-
Background properties are not inherited
-
the parent box's background will shine through by default because of the initial 'transparent' value on 'background-color'.
-
we recommend that authors specify the background for the BODY element rather than the HTML element
-
According to these rules, the canvas underlying the following HTML document will have a "marble" background:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <TITLE>Setting the canvas background</TITLE> <STYLE type="text/css"> BODY { background: url("http://example.com/marble.png") } </STYLE> <P>My background is marble.Note that the rule for the BODY element will work even though the BODY tag has been omitted in the HTML source since the HTML parser will infer the missing tag.
-
the rectangle that establishes the coordinate system for the 'background-position' property.
-
Thus, unless the image is tiled ('background-repeat: repeat'), it may be invisible.
-
Even if the image is fixed, it is still only visible when it is in the content, padding or border area of the element.
-
In paged media, where there is no viewport, a 'fixed' background is fixed with respect to the page box and is therefore replicated(复制) on every page.
-
If only one value is specified, the second value is assumed to be 'center'.
-
he padding box.
-
ever, the position is undefined in CSS 2.1 if the image has an intrinsic (本质的)ratio, but no intrins
-
ground-image on inline elements.
-
ixed within the viewport
-
the image is placed relative to the viewport instead of the element's padding box
-
18 Oct 11
AnnMarie HurtadoThis page was the best explanation of what to do to get a background to appear, out of all the pages I've looked at. Just when I was ready to tear my hair out over a website background, this page showed me the light. :)
-
10 Oct 11
-
10 Feb 11
-
This property sets the background color of an element, either a <color> value or the keyword 'transparent', to make the underlying colors shine through.
-
-
15 Jul 10
Georgia CardwellThis helps authors choose their own specific foreground color and backgrounds of elements.
-
20 Nov 09
-
22 Jul 09
-
11 Dec 08
-
Background properties are not inherited, but the parent box's background will shine through by default because of the initial 'transparent' value on 'background-color'.
-
-
03 Oct 08
-
27 Apr 08
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.