^

Prevent Padding and Border from changing Element Width

Article 115 in CSS

2020-12-21 19:55:51 from bugfish
Prevent Padding and Border from changing Element Width
CSS / Hints
Last Review on: 2021-02-27 03:13:47 | Hits: 66

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.
Comment Section
Currently 0 Upvotes!
captcha image

System - 2021-01-01 19:30:45
We appreciate comments on our site!

This Website is using Session Cookies for Site Functionality and AWStats.
Radio