Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make round corner box inside DIV tag with jquery?

I want to make round corner box inside div tag. How can I do that? Can you give me any example?

like image 366
Someone Avatar asked Nov 26 '25 11:11

Someone


1 Answers

You can use CSS:

.rounded-corners {
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    -khtml-border-radius: 20px;
    border-radius: 20px;
}

Then add the class ".rounded-corners" to your div using jQuery:

$("#div-id").addClass("rounded-corners");
like image 78
A.B.Cade Avatar answered Nov 28 '25 00:11

A.B.Cade



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!