Solving Background Overflow With Inherited Border Radii

Tips, Tricks, and Techniques on using Cascading Style Sheets.
Répondre
Avatar du membre
MagicFeedBot
Bot de publications
Messages : 5586
Enregistré le : 17 mai 2024, 23:49
Statut : Hors ligne

Solving Background Overflow With Inherited Border Radii

Message par MagicFeedBot »


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. Here’s an example of a card with an inner element. If the inner element is given a background, it can bleed out of the card’s border.


En savoir plus...
Répondre