Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

CSS Rounded Corners

DZone's Guide to

CSS Rounded Corners

·
Free Resource
// basic rounded corners for FF, Chrome, Safari not IE.
// Swiped from http://www.phpied.com/css-performance-ui-with-fewer-images/

.module {
  -moz-border-radius: 9px;
  -webkit-border-radius: 9px;
  border-radius: 9px;
}

//Rounding only the top left and right corners.  The other corners should be fairly easy. 
.hd {
  -moz-border-radius: 8px 8px 0 0;
  -webkit-border-top-left-radius: 8px;
  -webkit-border-top-right-radius: 8px;
  border-radius: 8px 8px 0 0;
}


Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}