Top Three Anime DVDs
border-radius builds upon the basic border property to turn the corners of any element into a quarter-ellipse. The property can take any CSS unit of measurement as a value.
Note that the latest versions of all browsers, including IE, Chrome and Opera, follow the border-radius statement; vendor prefixes are only required to cover older browsers.
Given a div with an id value of #bestanime that contains a heading and an ordered list:
- <div id=”bestanime”>
- <h3>Top Three Anime DVDs</h3>
- <ol>
- <li>Ghost In The Shell</li>
- <li>Spirited Away</li>
- <li>Akira</li>
- </ol>
- </div>
You could apply border-radius as follows to turn the corners of the div:
- div#bestanime { border: 5px double #000;
- -moz-border-radius: 20px;
- -webkit-border-radius: 20px;
- border-radius: 20px; }
border-radius can also be specified for individual corners, if you wanted to turn just one:
- div#bestanime { border: 5px double #000;
- -moz-border-radius-topright: 30px;
- -webkit-border-top-right-radius: 30px
- border-radius-topright: 30px; }
(Note that the property syntax changes slightly between older browsers when changing corners, not just the vendor prefix).
Ghost In The Shell
Spirited Away
Akira
so we don't need the jQuery minimum length anymore:) cool!


