Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #css #margin
ADD COMMENT
Topic
Name
7+3 =