margin 0 auto
/* Apply to all four sides */
margin: 1em;
margin: -3px;
/* vertical | horizontal */
margin: 5% auto;
/* top | horizontal | bottom */
margin: 1em auto 2em;
/* top | right | bottom | left */
margin: 2px 1em 0 auto;
/* Global values */
margin: inherit;
margin: initial;
margin: unset;Specifying 0 tells the browser to set the top and bottom margin to 0.
Specifying auto tells the browser to automatically determine the left
and right margins equally.
It's the same as:
margin-top:0;
margin-bottom:0;
margin-left:auto;
margin-right:auto;
p {
margin-top: 100px;
margin-bottom: 100px;
margin-right: 150px;
margin-left: 80px;
} p {
margin: 25px 50px 75px 100px; /* Top, Right, Bottom, Left */
}
Also in CSS:
- css translate3d
- animate font weight css
- style sheet link
- hide number input arrows
- how to create polaroid effect in css
- rotate image horizontally css
- css hide mark border
- label for centered image
- how to link locally installed fonts to css
- pixel to inches
- justify text csss
- font awesome icons link
- How to prevent anchor links from scrolling behind a sticky header with one line of CSS
- onhover mouse pointer css
- full page background image
- html static background
- css grid layout
- how to align an image left in css
- wrapper html
- background color using css
- javascript remoev css class
- materialize css for react
- jquey check css style
- css :focus