#yourdiv {
text-align: center;
margin: 0 auto;
width: 150px; /*custom width*/
height: 150px;/*custom height*/
-webkit-border-radius: 50%;
border-radius: 50%;
overflow: hidden;
}
How to make a circular div with only CSS
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.