I am trying to make a circle like this. I was able to make it in the fiddle, but the problem is that I need each orange side to be a link and I can't do it with borders. If anyone can help me with this I will be really grateful.
#circle {
width: 200px;
height: 200px;
border-radius: 50%;
background: green;
}
#incircle {
width: 100px;
height: 100px;
border-radius: 50%;
border: 50px dotted orange;
}
<div id="circle">
<div id="incircle"></div>
</div>
Here's a fiddle.
HTML
CSS
This can be trivially expanded to 4 parts instead of 2 by splitting up the
a
's vertically. However I recommend you look at something like RaphaelJS . You could even cheat and use a pie chart!I was trying to use pure css, And came up with this:
However, this is using the "border trick" to generate the blue div, and this would make part of it clickable. However, I do feel this when adapted, could work.
Something like