CSS Properties

This is an abridged list; a complete list can be found at www.w3schools.com/css/css_reference.asp.

The CSS column indicates in which CSS version the property is defined (CSS1 or CSS2).

Property

Description

CSS

Background Properties

background

Sets all the background properties in one declaration

1

background-color

Sets the background colour of an element

1

background-image

Sets the background image for an element

1

background-repeat

Sets how a background image will be repeated

1

Border Properties

border

Sets all the border properties in one declaration

1

border-bottom

Sets all the bottom border properties in one declaration

1

border-bottom-color

Sets the colour of the bottom border

2

border-bottom-style

Sets the style ...

Get How to Design Websites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.