Home arrow Style Sheets arrow Using the Custom -moz-border-radius Property to Build Rounded Corners with CSS3
STYLE SHEETS

Using the Custom -moz-border-radius Property to Build Rounded Corners with CSS3


In this third installment of a five-part series, I discuss how to easily create rounded corners with CSS3 using the proprietary “-moz-border-radius” property. This property will work only on Mozilla-based browsers, and the example you're about to see should be treated as an introduction that hopefully will give you a clearer idea of how this effect will be rendered by CSS3-compatible browsers.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
March 18, 2010
TABLE OF CONTENTS:
  1. · Using the Custom -moz-border-radius Property to Build Rounded Corners with CSS3
  2. · A quick look at the native border-radius property
  3. · Displaying rounded corners on Mozilla-based browsers with the custom -moz-border-radius property
  4. · Including the previous CSS styles in a web page

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Using the Custom -moz-border-radius Property to Build Rounded Corners with CSS3
(Page 1 of 4 )

Rounded corners are, undoubtedly, one of the most engaging effects that have been used over the years for giving web pages a refreshing look without having to create heavy and complex background images. They're popular even though their tricky to implement, particularly when developing liquid layouts. Rounded corners have been very often overused or misused in the past, which has slightly decreased their well-deserved popularity.

However, the progressive support of CSS3 by most major browsers hopefully will bring rounded corners back to the privileged place they used to hold in the old days, as the brand new specification comes with some properties that will make creating this classic effect a very easy process.

To illustrate that building rounded containers with CSS3 is very simple, in the two parts previous to this one I explained how to apply this decorative effect to a single div, first by assigning multiple background images to it (a process known as multiple background layering), and second via the native “border-radius” property.

Frankly speaking, I have to admit that in both cases the development was a breeze to tackle, but unfortunately (at least for the moment) neither multiple layering nor the aforementioned “border-radius” property are supported by many modern browsers. Even so, not all is lost when it comes to building rounded corners using CSS3, as some Mozilla and WebKit-based browsers are capable of rendering them by means of a few proprietary implementations.

Therefore, in this third part of the series I’ll be showing you how to easily create rounded corners in Mozilla-driven browsers like Firefox using the “-moz-border-radius” custom property. This will let you learn the ins and outs of this process and get ready for the promising scenario that CSS3 has brought to the terrain of modern web design.

Now, let’s learn a few more interesting things about creating rounded corners with CSS3. Let’s get going!


blog comments powered by Disqus
STYLE SHEETS ARTICLES

- CSS Combinators: Working with Child Combinat...
- CSS Combinators: Using General Siblings
- Intro to CSS Combinators
- CSS Semicircles and Web Page Headers
- Drawing Circular Shapes with CSS3 and Border...
- More CSS Pagination Link Templates
- CSS Pagination Links
- Animated CSS3 Image Gallery: Advanced Transi...
- CSS3 Animated Image Gallery: Transitions
- CSS3 Properties: Fixed Heights with box-sizi...
- CSS3 Properties: Altering Strokes and 3D Eff...
- CSS3 Properties: Text-Stroke
- CSS3 Transitions: Width and Height Properties
- Creating a Drop Down Menu in CSS3
- Intro to CSS Transitions

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 4 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials