How to Round Corners in CSS
Master border-radius to create rounded corners, circles, pills, and custom shapes. Click any example to copy the CSS.
Quick Reference
Border Radius Scale
Individual Corners
Round specific corners using the 4-value shorthand: top-left, top-right, bottom-right, bottom-left.
Individual Corner Properties
Frequently Asked Questions
Set equal width and height, then apply border-radius: 50%. For example: width: 100px; height: 100px; border-radius: 50%;
50% creates an ellipse based on the element's dimensions (circle if equal). 9999px is a large fixed value that creates a pill shape regardless of dimensions - useful for buttons with varying widths.
Use the shorthand with 4 values (top-left, top-right, bottom-right, bottom-left): border-radius: 10px 10px 0 0; or individual properties like border-top-left-radius: 10px;
More CSS Tutorials
Copy CSS from Website
Extract styles with 2 clicks
Center a Div (CSS)
Flexbox, Grid, and more
Center a Div (Tailwind)
Utility classes for centering
Convert CSS to Tailwind
CSS to utility classes
Glassmorphism Effect
Frosted glass UI style
Neumorphism Button
Soft UI button design
Responsive Navbar
Mobile-friendly navigation
Sticky Header
Fixed navigation on scroll
CSS Pagination
Page navigation styles
CSS Accordion
Expandable content sections
Dropdown Menu
Hover and click dropdowns
CSS Modal
Popup dialog boxes
Toast Notifications
Animated alert messages
Hamburger Menu
Animated menu icon
Animate Gradients
Moving gradient backgrounds
Skeleton Loader
Loading placeholder UI
Element Screenshot
Capture any element as image
Pick Color from Website
Eyedropper tool comparison
Identify Fonts
Find fonts on any website
Download All Images
Bulk save images from any site
Measure Elements
Page ruler and measurements
Extract Colors from Website
Get any color palette instantly
Dark Mode Toggle
CSS variables and localStorage
Responsive Grid
CSS Grid auto-fit and minmax
Center Text in CSS
text-align, Flexbox, and Grid
Make Text Bold
font-weight values explained
Add Shadow in CSS
box-shadow, text-shadow, drop-shadow
Style File Input
Custom upload buttons
