I am a CSS newbie so don't know much abut it. How can I create a sector of say 40deg with border? I can create 90deg sectors, 180deg ones, but not any other angles.
See my code : http://jsfiddle.net/gzt9abx5/1/
div.abc {
height: 100px;
width: 100px;
background: red;
border-radius: 0 100px 0 0;
border: 4px solid blue;
}
I need the shape to be sector, not the background. It is not a duplicate of another question.
You can achieve it using
overflow: hidden;
andtransform: rotate;
.If you don't want hover on sector, you can simply try the following :
For hover effects, you'll need to use two elements, with the same method used above :