Why does CSS not support negative padding?

前端 未结 7 1410
予麋鹿
予麋鹿 2020-11-30 01:26

I have seen this many a times that the prospect of a negative padding might help the development of CSS of certain page elements become better and easier. Yet, there is no p

相关标签:
7条回答
  • 2020-11-30 02:06

    This could help, by the way:

    The box-sizing CSS property is used to alter the default CSS box model used to calculate widths and heights of elements.

    http://www.w3.org/TR/css3-ui/#box-sizing
    https://developer.mozilla.org/En/CSS/Box-sizing

    0 讨论(0)
提交回复
热议问题