WordPress & Web Development

Floyd’s Blog.

Simplifying CSS Box Model with Box-Sizing

Simplifying CSS Box Model with Box-Sizing

The CSS "box model" is confusing. Mainly because an element's width is the width of the element plus its padding-width and border-width. Setting your element's width to 100% and assigning 20px padding actually results in a width of 100% + 40px. That's not only...

Looking for WordPress Help?

I’m a freelance web developer specializing in small business and corporate marketing websites.

Pin It on Pinterest