css 3

Icon

A comprehensive CSS 3 reference guide, tutorial, and blog
Are you a CSS expert? Want to contribute? Contact us

CSS BACKGROUND-COLOR

The background-color property sets the background color of an element.

Inherited:  No

Example

p {background-color: #00ff00}

 

Possible Values

Value Description
color The color value can be a color name (red), a rgb value (rgb(255,0,0)), or a hex number (#ff0000)
transparent The background color is transparent

5 Responses

  1. PLasebo says:

    Can we define gradient background color in CSS3 ?

  2. Gradients possible define in css3.

  3. Jerry says:

    Actually there is NO gradient color in the CSS3 specification. Some browsers have implemented (very different) ways of specifying gradients using CSS, but they are not CSS3. We likely won’t see any convergence of the different methods until and if gradients are part of a later CSS specification.

Leave a Reply

Pages

Sponsors

$100 PSD to XHTML. CONTACT US FOR MORE INFORMATION


CSS3.com



Please help CSS3.com stay alive and running

Bad Behavior has blocked 974 access attempts in the last 7 days.