CSS Box Model

Box

Property

Value

margin-top

px

margin-bottom

Px

margin-left

Px

Margin-right

Px

Margin

Px (all above together)

padding-top

Px

padding-bottom

Px

padding-left

Px

padding-right

Px

padding

Px (all above together)

Border-top

Px

Border-bottom

Px

Border-left

Px

Border-right

Px

Border

Px (all above together)

Border-style

dotted, dashed, solid, double, groove, ridge, inset, outset

Border-width

Px

Border-color

#000000, black

Width

Px, %

Height

Px, %