I am puzzled as to why the two sections, section.structure and section.specificity, are not aligning properly. It seems that when I reduce the width, they line up correctly at a certain point which I haven't identified yet.
My goal is to have the width set around 500px for each block, or roughly half of the screen width each. However, when I attempt this, they end up stacking on top of each other instead of side by side. Any suggestions?
HTML
<main>
<section class= "structure">
</section>
<section class= "specificity">
</section>
CSS
section.structure {
border-radius: 20px;
height: 500px;
width: 500px;
background-color: rgb(255, 255, 255);
margin: 10px;
border: rgb(245, 245, 245);
display: inline-block;
}
section.specificity {
border-radius: 20px;
height: 500px;
width: 500px;
background-color: rgb(255, 255, 255);
margin: 10px;
border: rgb(245, 245, 245);
display: inline-block;
}
Attempting to change width measurements and vertical-align did not yield any changes in the layout.