Answers for "padding 2 means"

CSS
3

padding 4 values

padding: top right bottom left;

padding: 1em 3px 30px 5px;  /* top:    1em padding  */
                            /* right:  3px padding  */
                            /* bottom: 30px padding */
                            /* left:   5px padding  */
Posted by: Guest on December-18-2020
0

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;
}
Posted by: Guest on February-12-2022

Browse Popular Code Answers by Language