CSS3 Borders

The Web Book

The border-radius property allows you to add rounded corners to elements.

CSS3 Borders Example Code

HTML CODE ....................................................................................... <!DOCTYPE html> <html> <body> <div>The border-radius property allows you to add rounded corners to elements.</div> </body> </html> CSS CODE .................................... div { color: white; background:orange; width:300px; padding:10px 40px; border-radius:50px; box-shadow: 10px 10px 5px #888888; -moz-border-radius:50px; -moz-box-shadow: 10px 10px 5px #888888; } Back