Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

padding

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

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

/* The same padding written longhand */
.box {
  padding-top: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
}
Source by css-tricks.com #
 
PREVIOUS NEXT
Tagged: #padding
ADD COMMENT
Topic
Name
3+1 =