Borders, Radius & Shadows in CSS
From the CSS cheat sheet ยท Borders, Shadows & Effects ยท verified Jul 2026
Borders, Radius & Shadows
Border styles, rounded corners, box shadows, and filters
css
.card {
border: 1px solid #e5e7eb;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.circle { border-radius: 50%; }
.pill { border-radius: 9999px; }๐ก box-shadow: 0 0 0 3px color creates a ring effect โ great for focus states
โก backdrop-filter: blur() creates frosted glass effects โ combine with semi-transparent background
๐ outline doesn't take up space or affect layout โ border does
๐ข filter: drop-shadow follows the element shape (including transparency) โ box-shadow is always rectangular
bordershadowradiusfilter