Solving Background Overflow With Inherited Border Radii | CSS-Tricks

One of the interesting (but annoying) things about CSS is the background of children's elements can bleed out of the border radius of the parent element.

CSS-Tricks