https://i.sstatic.net/NyHXu.png
I attempted to create a circular layout using 6 buttons, but the end result did not form a perfect circle as intended. In the image provided, I highlighted the areas of concern in red. Below, you will find my HTML and CSS code for reference.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8>
<title>Title</title>
<style>
.container {
margin-top: 360px;
margin-bottom: 16px;
padding-left: 30px;
padding-right: 30px;
}
.top-left {
margin-top: -260px;
margin-left: -20px;
border-radius: 40px / 100px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
position: absolute;
}
.top-right {
margin-top: -260px;
margin-left: 155px;
border-radius: 40px / 100px;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border-bottom-right-radius: 0;
position: absolute;
}
.bottom-left {
margin-top: -160px;
margin-left: -20px;
border-radius: 40px / 100px;
border-top-right-radius: 0;
border-top-left-radius: 0;
border-bottom-right-radius: 0;
position: absolute;
}
.bottom-right {
margin-top: -160px;
margin-left: 155px;
border-radius: 40px / 100px;
border-top-right-radius: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
position: absolute;
}
.top-center{
border-radius: 440px / 220px;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
width: 270px!important;
height: 70px!important;
margin-top: -334px;
margin-left: 15px;
position: absolute;
}
.top-center p {
padding: 0px 40px 0px 40px;
}
.bottom-center{
border-radius: 440px / 220px;
border-top-left-radius: 0;
border-top-right-radius: 0;
width: 270px!important;
height: 70px!important;
margin-top: -64px;
margin-left: 15px;
position: absolute;
}
.bottom-center p {
padding: 0px 40px 0px 40px;
}
.div-button {
width: 168px;
height: 92px;
border: 2px solid rgba(77,207,255,1);
background-color: transparent;
color: rgba(77,207,255,1);
font-size: 25px;
text-align: center;
vertical-align: middle;
line-height: 100px;
transition: all .3s linear;
}
.div-button p{
margin-top: -10px!important;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.button-selected {
transform: scale(0.8);
border: none;
background-color: rgba(77,207,255,1);
color: black;
}
</style>
</head>
<body>
<div class="container">
<div class="div-button top-center" id="top-center">
<p>Text</p>
</div>
<div class="div-button top-left" id="top-left">
<p>Text</p>
</div>
<div class="div-button top-right" id="top-right">
<p>Text</p>
</div>
<div class="div-button bottom-left" id="bottom-left">
<p>Text</p>
</div>
<div class="div-button bottom-right" id="bottom-right">
<p>Text</p>
</div>
<div class="div-button bottom-center" id="bottom-center">
<p>Text</p>
</div>
</div>
</body>
</html>