Dup Goto 📝

margin-and-padding

PT2/lang/css/basics 07-31 13:46:48
To Pop
12 lines, 46 words, 348 chars Monday 2023-07-31 13:46:48
elt {
  margin-{left|right|top|bottom}: 1px;
  margin: {all}; /* all */
  margin: {top} {right} {bottom} {left};
  margin: {top} {left-and-right} {bottom};
  margin: {top-and-bottom} {left-and-right};
  padding: /* as for margin */
  box-sizing: border-box; /* padding on inside of box, rather than outside -- use with width/height */
}