Приглашаем посетить
Григорьев С.Т. (grigoryev-s-t.lit-info.ru)

CSS Margin Style Properties

Previous Page
Table of Contents
Next Page

CSS Margin Style Properties

Margins allow you to add a bit of spacing around the outer edge of an element, outside of the element's border.

margin

Usage

A shorthand property that allows you to set all the margin properties in one declaration.

Values

margin-top, margin-right, margin-bottom, margin-left.


margin-bottom

Usage

Sets the bottom margin of an element.

Values

auto, length, %.


margin-left

Usage

Sets the left margin of an element.

Values

auto, length, %.


margin-right

Usage

Sets the right margin of an element.

Values

auto, length, %.


margin-top

Usage

Sets the top margin of an element.

Values

auto, length, %.



Previous Page
Table of Contents
Next Page