Obsessed with React and teaching. I help people become Frontend Developers. Living with my fiancee and Yorkshire Terrier 🐶 in Poland.
Discover Mentorship
Discover Mentorship
The above is an affiliate link, if you buy the book I'll get a small commission at no extra charge to you.
Obsessed with React and teaching. I help people become Frontend Developers. Living with my fiancee and Yorkshire Terrier 🐶 in Poland.
Image by Erda Estremera from Unsplash
DESCRIPTION
Adjust box-sizing property to include padding and border to actual width or height. Simplifies overhead of the box model.
Preview
Border-box property
Summary
- Add the above code to your main CSS file to take effect.
- Select all selector targets all HTML elements, including all pseudo-elements.
- Then, the box-sizing property is overridden to
border-box
instead of defaultcontent-box
.
THE GUIDE TO BEAT FRONTEND INTERVIEW
slack
Let's build a community that will help each other.