Answers for "margin left used"

CSS
37

margin css

/* 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;
Posted by: Guest on February-01-2020
1

css margin

margin: <margin-top> || <margin-right> || <margin-bottom> || <margin-left>

/* shorthand margin*/
.box {
  margin: 20px;
}

/* The same margin written longhand */
.box {
  margin-top: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
  margin-left: 20px;
}
Posted by: Guest on February-12-2022

Browse Popular Code Answers by Language