• Home
  • About
    • Miles' Blog photo

      Miles' Blog

      Miles 用來記錄學習心得及筆記的地方。

    • Learn More
    • Email
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

CSS - Changing the Box Model

13 Mar 2018

Reading time ~1 minute

Reference : Codecademy - Learn CSS - Changing the Box Model

  • In the default box model, box dimensions are affected by border thickness and padding.
  • The box-sizing property controls the box model used by the browser.
  • The default value of the box-sizing property is content-box.
  • The value for the new box model is border-box.
  • The border-box model is not affected by border thickness or padding.


I.T.CSS Share Tweet +1