MARGIN Property In CSS

margin Property in CSS

margin property Shorthand property used to declare all the margin properties at once.

Possible Value:

Separate values by a space in the following order (those that are not defined will use inherited or default initial values): margin-top margin-right margin-bottom margin-left

Example

div { margin:5px 12px 4px 7px; } div { margin:5px; } div { margin:5px 10px; } div { margin:5px 7px 4px; }

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad