CSS: Is it correct that text content of a div overflows into the padding?
This is the correct behavior. overflow: hidden will clip content that extends outside the box. Padding is inside the box, so content will happily overflow into that space if necessary. (source) To get the effect you seem to be aiming for, one solution is wrap your div.foo in an another div and set the background … Read more