Blog categorized as Tips & Tricks

Box-sizing CSS property
  • What is it?
    • A CSS property that tells the browser how to calculate the total width and height of an element.
  • How does it normally behave?
    • The default box-sizing behavior is the content-box.
    • If you were to set an element’s width to 100px, then the content-box width will be 100px.
    • Say you want to add paddi...
31-05-22 02:44 PM - Comment(s)