Answers for "style margin html"

CSS
1

html inline style margin

<div class="myClass" style="margin-top: 20px;">
<div class="myClass">
<div class="myClass" style="margin-bottom: 20px;">
Posted by: Guest on April-14-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