[thelist] CSS background problems

Emma Jane Hogbin emmajane at xtrinsic.com
Thu Feb 27 11:33:01 CST 2003

On Fri, Feb 28, 2003 at 06:01:09AM +1300, michael ensor wrote:
> Becky, simple check - try adding a semi-colon to the end of each line of
> style=
> body {background-color: #111111; }

Since she only has one property: value for each rule the semi colon is
actually optional.

The other way to make sure you're getting *black* is to use the keyword
black instead of numbers. Black can be any /one/ of these values:
	background: black; (note the semi colons are optional for single
	property/value rules)
	background: #000; (Short form for "hex" values. # is required!)
	background: #000000; ("html" format for hex, # still required)
	background: rgb(0,0,0); (counting from 0-255)
	background: rgb(0%, 0%, 0%); (counting from 0-100% saturation)

"background" the property name can also be written "background-color."
Either are acceptable if only the background color is being defined.
For more information about each of the background properties see:

For more information on units of color see:

Hope that helps.


Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]

More information about the thelist mailing list