I'm trying to find a way to horizontally center multiple DIVs in a straight line. Here's how my code currently looks:
HTML:
<div id="circle">
<div id="circle1"></div>
<div id="circle2"></div>
</div>
CSS:
#circle {
text-align: center;
}
#circle1, #circle2 {
background: #D5DED9;
width: 100px;
height: 100px;
border-radius: 50%;
margin: 0 auto;
}
Although they do center horizontally, there appears to be a gap between the circles and I'm unsure how to align them in a straight line.
I've tried searching online for solutions, but haven't come across anything that effectively addresses this issue.