CSS border-radius

border-radius:

css:

.border-radius {
    border-radius: 20px;
    margin: 20px;
    padding: 20px;
    background: #ddd;
    /* useful if you don't want a bg color from leaking outside the border: */
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}

html:

<div class="border-radius">
    border-radius
</div>​

Leave a Reply

Your email address will not be published. Required fields are marked *