CSS3 Border Radius

This is, to me, one of the best things to come out of CSS3. The ability to create rounded corners with CSS. No need for images, or lots of divs. You can read the documentation at the W3C site as well.

The syntax is fairly straight forward; border-radius or border-*-*-radius. The *-* would be something like top-right or bottom-left.

Mozilla is a bit different. Another great reference site is CSS3.info, where I found this little chart.

W3C Specification Mozilla Implementation
border-radius -moz-border-radius
border-top-left-radius -moz-border-radius-topleft
border-top-right-radius -moz-border-radius-topright
border-bottom-right-radius -moz-border-radius-bottomright
border-bottom-left-radius -moz-border-radius-bottomleft

There is more that can be written about it, but given those two references you should be fine.

Advertisements

About SheldonS

Web developer for over 15 years mainly with Microsoft technologies from classic ASP to .NET 4. Husband, father, and aspiring amateur photographer.

Posted on June 22, 2011, in CSS. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: