CreateaFreeWebsite  with Responsive Web Design

Round Corners and Border-Radius in CSS3

The border-radius property is one of those CSS techniques that has been experimental for a few of the last releases of CSS.

It is now supported by the latest versions of all major browsers.

You can use it with or without adding a border to your page element.

You can use it on all or selected corners.

Use ems or pixels for the value of the radius.

Experiment.

Code and Examples

All 4 Corners

border-radius: 10px

 

 

Top corners

border-radius: 20px 20px 0 0

 

 

Bottom corners

border-radius: 0 0 30px 30px

 

 

No Border with Inset Box shadow

border-radius: 25px; box-shadow: 5px 5px 10px #0e0e0e inset

 

 

See Also: Box Shadow

 

Free Tools We Recommend

Free Ebook How to Code in HTML5 and CSS3
"How to Code in HTML5 and CSS3" is a free e-book about making websites in HTML5 and CSS for absolute beginners. It doesn't require any experience in IT to start....
FREE HTML Editor (Windows): NoteTab Light
All the features of a commercial HTML editor.
FREE Apache Server (Windows): IndigoAmpp
Set up a real time server environment right on your PC. Test forms and scripts before uploading to your web space.
Linux Users
If like us, you've left the insane world of Microsoft Windows for the even worse experience of Linux, we recommend the Geany Code Editor. You'll find it in your Linux Mint software repository. It's simple but powerful and FREE.
For image resizing we've found the easiest Linux tool to be Krita.

Have you tried out RWD template kit? Download Template #402 - 6 Page Kit