九月
16

Rounded corners

Our rounded corners implementation is based on three different works:

We
took these, combined them, stripped some functionality (kept antialiasing) and simplified the API. There is one
restriction: only DIVs can be rounded with this implementation, which
suited us fine, and made the code a bit shorter.

Usage

You have to attach a class “rounded” to the divs you want round.

Here’s the Javascript that you have to add to the end of your html page:

<script type=“text/javascript”>Rounded(’rounded’, 6, 6);script>

The first parameter, “rounded” stands for the classname
which is used to mark the divs that we want to make round. The other two
parameters are the radius of the corners, the bigger the number, the
rounder you will get.

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg

Tags:

No Responses

Leave a Response

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>