Box model properties

Property

Value

Description

Support level

Availability

border

List of border values

Specifies one or more border properties.

CSS 2.1

3.8 or later

border-bottom

List of bottom border values

Specifies the properties of the bottom border.

CSS 2.1

3.8 or later

border-bottom-color

Color

Specifies the color of the bottom border.

CSS 2.1

3.8 or later

border-bottom-style

dashed | dotted | double | groove | hidden | inset | outset | ridge | solid

Specifies the style of the bottom border.

CSS 2.1

3.8 or later

border-bottom-width

Length | medium | thick | thin

Specifies the width of the bottom border.

CSS 2.1

3.8 or later

border-color

Color

Specifies the border color.

CSS 2.1

3.8 or later

border-left

List of left border values

Specifies the properties of the left border.

CSS 2.1

3.8 or later

border-left-color

Color

Specifies the color of the left border.

CSS 2.1

3.8 or later

border-left-style

dashed | dotted | double | groove | hidden | inset | outset | ridge | solid

Specifies the style of the left border.

CSS 2.1

3.8 or later

border-left-width

Length | medium | thick | thin

Specifies the left of the bottom border.

CSS 2.1

3.8 or later

border-right

List of right border values

Specifies the properties of the right border.

CSS 2.1

3.8 or later

border-right-color

Color

Specifies the color of the right border.

CSS 2.1

3.8 or later

border-right-style

dashed | dotted | double | groove | hidden | inset | outset | ridge | solid

Specifies the style of the right border.

CSS 2.1

3.8 or later

border-right-width

Length | medium | thick | thin

Specifies the left of the right border.

CSS 2.1

3.8 or later

border-style

dashed | dotted | double | groove | hidden | inset | outset | ridge | solid

Specify the border style.

CSS 2.1

3.8 or later

border-top

List of top border values

Specifies the properties of the bottom border.

CSS 2.1

3.8 or later

border-top-color

Color

Specifies the color of the top border.

CSS 2.1

3.8 or later

border-top-style

dashed | dotted | double | groove | hidden | inset | outset | ridge | solid

Specifies the style of the top border.

CSS 2.1

3.8 or later

border-top-width

Length | medium | thick | thin

Specifies the width of the top border.

CSS 2.1

3.8 or later

border-width

Length | medium | thick | thin

Specify the border width.

CSS 2.1

3.8 or later

margin

List of margin values

Specifies the margin around all sides of an element.

CSS 2.1

4.6 or later

margin-bottom

Percentage | Length | auto

Specifies the margin below of an element.

CSS 2.1

4.6 or later

margin-left

Percentage | Length | auto

Specifies the margin to the left side of an element.

CSS 2.1

4.6 or later

margin-right

Percentage | Length | auto

Specifies the margin to the right side of an element.

CSS 2.1

4.6 or later

margin-top

Percentage | Length | auto

Specifies the margin above an element.

CSS 2.1

4.6 or later

padding

List of padding values

Specifies the padding around all sides of an element.

CSS 2.1

4.3 or later

padding-bottom

Percentage | Length | auto

Specify the padding applied below an element

CSS 2.1

4.3 or later

padding-left

Percentage | Length | auto

Specify the padding applied to the left side of an element

CSS 2.1

4.3 or later

padding-right

Percentage | Length | auto

Specify the padding applied to the right side of an element

CSS 2.1

4.3 or later

padding-top

Percentage | Length | auto

Specify the padding applied above an element

CSS 2.1

4.3 or later

-webkit-border-radius

Length

Specifies the roundness of the border corners.

CSS 3

6.0 or later

-webkit-border-bottom-left-radius

Length

Specifies the roundness of the bottom left corner of the border.

CSS 3

6.0 or later

-webkit-border-bottom-right-radius

Length

Specifies the roundness of the bottom right corner of the border.

CSS 3

6.0 or later

-webkit-border-top-left-radius

Length

Specifies the roundness of the top left corner of the border.

CSS 3

6.0 or later

-webkit-border-top-right-radius

Length

Specifies the roundness of the top right corner of the border.

CSS 3

6.0 or later

Backgrounds & foregrounds | Box model | Fonts | Lists | Tables | Text | Visual effects | Visual formatting

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus