What I want is to align three circle in a row and the middle circle must be in center. I am using only HTML5 and CSS without any other frameworks but I am not able to achieve the desired outcome. Can anyone help me? Any help will be appreciated.
.chart {
position: absolute;
width: 0;
height: 0;
border-radius: 100px;
-moz-border-radius: 100px;
-webkit-border-radius: 100px;
}
.chart3 {
position: absolute;
width: 0;
height: 0;
right: 0;
border-radius: 100px;
-moz-border-radius: 100px;
-webkit-border-radius: 100px;
}
#chart1 {
border-right: 100px solid red;
border-top: 100px solid transparent;
border-left: 100px solid transparent;
border-bottom: 100px solid transparent;
}
#chart2 {
border-right: 100px solid transparent;
border-top: 100px solid green;
border-left: 100px solid transparent;
border-bottom: 100px solid transparent;
}
<!--I want to use this HTML to achieve the desired result-->
<div id="chart1" class="chart"></div>
<div id="chart2" class="chart"></div>
<div id="chart3" class="chart"></div>
<div id="chart4" class="chart"></div>
<!--Tables I used to achieve the desired result-->
<table>
<tr>
<td>
<div id="chart1" class="chart"></div>
<div id="chart2" class="chart"></div>
<div id="chart3" class="chart"></div>
<div id="chart4" class="chart"></div>
</td>
<td>
<div id="chart1" class="chart"></div>
<div id="chart2" class="chart"></div>
<div id="chart3" class="chart"></div>
<div id="chart4" class="chart"></div>
</td>
<td>
<div id="chart1" class="chart3"></div>
<div id="chart2" class="chart3"></div>
<div id="chart3" class="chart3"></div>
<div id="chart4" class="chart3"></div>
</td>
</tr>
</table>