^

Prevent Padding and Border from changing Element Width

Article 115 in CSS

<< Back
2020-12-21 19:55:51 from bugfish
Prevent Padding and Border from changing Element Width
CSS / Hints
Last Review on: 2022-08-07 12:34:24 | Hits: 517

Put this into an element to prevent padding / borders from changing the width of an element.

-webkit-box-sizing: border-box; /* Chrome */
-moz-box-sizing: border-box;    /* Firefox */
box-sizing: border-box;         /* Opera/IE */
I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.

Comments

Currently 1 Upvotes!

captcha image
System - 2022-08-17 03:19:16
Thanks for visiting my page and have a nice day!
Staff may be in trouble!
Theme
Switch: NONE | Arrive: NONE
This Website is using Session Cookies for Site Functionality and AWStats.