How to make padding:auto work in CSS?

前端 未结 5 899
孤街浪徒
孤街浪徒 2021-01-07 18:02

I am working on a legacy project that has CSS Reset with *{ margin:0; padding:0 } applied to everything. Now, my new code doesn\'t need that as it relies on Nor

5条回答
  •  花落未央
    2021-01-07 18:14

    You can reset the padding (and I think everything else) with initial to the default.

    p {
        padding: initial;
    }
    

提交回复
热议问题