Struggling with CSS positioning yet again. I'm trying to design a webpage with one main element in the center, surrounded by 10 others. The challenge is to maintain consistency across different screen sizes (excluding mobile).
However, every time I resize the screen, the layout of the site changes.
HTML
<div class="wrapper" id="wrapper"> <div class="element" id="element-1">Lorem1</div> <div class="element" id="element-2">Ipsum2</div> <div class="element" id="element-3">Lorem3</div> <div class="element" id="element-4">Ipsum4</div> <div class="element" id="element-5">Lorem5</div> <span class="break"></span> <div class="background" id="background"><span>Neologizmo</span></div> <div class="element" id="element-8">Ipsum8</div> <div class="element" id="element-9">Lorem9</div> <span class="break"></span> <div class="element" id="element-10">M10</div> <div class="element" id="element-11">M11</div> <div class="element" id="element-12">12</div> </div>
CSS