4 ms·
As the OP says you can usually solve this problem by applying padding to a element that has box-sizing: border-box set. calc() will obviously have some niche u
by monkeynotes 13y ago
As the OP says you can usually solve this problem by applying padding to a element that has box-sizing: border-box set.
calc() will obviously have some niche uses though, and given the creativity of the industry I'm sure some neat tricks will rise out of it.
- ris 13y ago> you can usually solve this problem by applying padding to a element that has box-sizing: border-box set. And what if your element is already using padding/a border for something else and you don't want to have to fill your DOM tree with loads of pointless levels of wrapper elements?
- monkeynotes 13y agoAs I say, you can usually solve your problem this way.