Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

applying padding increases the size of the element

/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
Source by www.paulirish.com #
 
PREVIOUS NEXT
Tagged: #applying #padding #increases #size #element
ADD COMMENT
Topic
Name
3+3 =