I've got a button with 100px
height, 100px
width and a border radius of 100px
. This makes a 360 degree circle, but I only want to hide half of it. I've searched for everything but I can't find it. Does anyone know how to do this?
Thanks!
Make a parent div, add overflow: hidden;
and position: relative;
to it. In the child div, do position: relative;
and top: -50px;
By "hide half of it", what do you mean?
Do you want a semicircle?
width:100px;
height:50px;
border-radius:50px 50px 0 0;
Or something else? Please elaborate further and I can provide more options ;)
You can put it in another div with height: 50px
and overflow:hidden
. That should do the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With