I'm currently working on aligning buttons within a div to achieve the desired effect shown in the image below. My goal is to have all buttons centered on the page, with the small circles placed in a separate div as they are initially invisible and it's easier to adjust their parameters. Here is my progress so far:
https://i.sstatic.net/jeQmG.png
Here is what I am aiming for:
https://i.sstatic.net/5RA2m.png
.guzik {
background-color: white;
display: inline-block;
padding: 0 2px;
height: 30px;
width: 30px;
border-radius: 50%;
border: 1px solid black;
margin: 20px;
}
.guzik1 {
display: inline-block;
vertical-align: middle;
background-color:white;
padding: 0 0px;
height: 15px;
width: 15px;
border-radius: 50%;
border: 1px solid black;
font-size: 9px;
}
<div>
<input name="1" type="button" class="guzik1" id="k 0+1" />
<input name="2" type="button" class="guzik1" id="k 0+2" />
<input name="3" type="button" class="guzik1" id="k 0+3" />
<input name="4" type="button" class="guzik1" id="k 0+4" />
<input name="Color1" type="button" class="guzik" id="0+1" onclick="changeColor1(id)" />
<input name="Color2" type="button" class="guzik" id="0+2" onclick="changeColor1(id)" />
<input name="Color3" type="button" class="guzik" id="0+3" onclick="changeColor1(id)" />
<input name="Color4" type="button" class="guzik" id="0+4" onclick="changeColor1(id)" />
</div>