How to make a div with rounded corners

user23557676 picture user23557676 · Aug 18, 2011 · Viewed 31k times · Source

How do you make a div so that it's border's corners are rounded?

Thanks everyone!

Answer

SilverHorn picture SilverHorn · Aug 18, 2011

Here it is:

<style type="text/css">
div.test
{
width: 115px;
padding: 10px;
border: 2px solid #000;
border-radius: 15px;
-moz-border-radius: 15px;
}
</style>
<div class="test">This is some text!</div>

–SilverHorn