I've been attempting to center multiple div blocks within another div or HTML document, but I haven't had any success with the methods I've found on StOv.
Here's an image of what I'm aiming for:
https://i.stack.imgur.com/DB7uQ.jpg
Edit:
Unfortunately, I'm utilizing nested jQuery and it's too intricate for jsfiddle. The only option is to provide a link to the files I'm using:
Below is the code snippet:
<div id="device" style="position: relative; height: 971px; width: 100%; margin-left: auto; margin-right:auto;">
<div class="box size42" data-box="0" data-width="35" style="display: block; position: absolute; width: 35px; height: 35px; top: 0px; left: 0px;" data-y="0" data-x="0"></div>
<div class="box size22" data-box="1" data-width="71" style="display: block; position: absolute; width: 71px; height: 35px; top: 0px; left: 0px;" data-y="0" data-x="0"></div>
...
</div>