Mobile app version of vmapp.org
Login or Join
Michele215

: Button whith an irregular shape I'm trying to mare a button whith an irregular shape similar to this using only CSS Somebody have any clue?

@Michele215

Posted in: #Button #Css #Shapes

I'm trying to mare a button whith an irregular shape similar to this using only CSS
Somebody have any clue?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Michele215

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murray976

You can play with the border-radius property to get some odd shapes...



button {
background: #a00 ;
color: #fff ;
border: 2px solid #a33 ;
padding: 20px 50px;
margin: 20px;
font-size: 20px;
font-weight: bold;
box-shadow: 0 3px 5px #aaa;

/* where the magic happens */
border-radius: 40% 60% 30% 50%;

}


Sample

If you need that specific shape, you'll have to work out the percentage of radius for each corner to get close.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme