HTML Flashcards

1
Q

Margin CSS Shorthand

A

The margin CSS shorthand property sets the margin area on all four sides of an element.

/* Apply to all four sides */

margin: 20px;
margin: -5px;
    /* vertical | horizontal */
    margin: 10px 5px;
    /* top | horizontal | bottom */
    margin: 10px auto 5px;
    /* top | right | bottom | left */
    margin: 1px 2px 0 3px;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly