CSS: Is it correct that text content of a div overflows into the padding?

前端 未结 7 1393
傲寒
傲寒 2021-01-30 10:55

I expected that the padding inside a div would remain clear of any text. But given the following html/css, the content-text spills out into the padding;

7条回答
  •  难免孤独
    2021-01-30 11:14

    The only way i could see this working is by getting rid of the width: 50px...other than that i stumped!?

提交回复
热议问题