I'm trying to center a CSS spinner on the page, but I am struggling with making it happen. Even when scaled down by 50%, the height and width remain at 200px.
<div class="center" style="">
<div class="uil-default-css" style="width: 200px;height: 200px;position: absolute;left: 50%;top: 50%;zoom:0.5;-moz-transform:scale(0.5);">
<div style="top:80px;left:93px;width:14px;height:40px;background:#00b2ff;-webkit-transform:rotate(0deg) translate(0,-60px);transform:rotate(0deg) translate(0,-60px);border-radius:10px;position:absolute;"></div>
<div style="top:80px;left:93px;width:14px;height:40px;background:#00b2ff;-webkit-transform:rotate(30deg) translate(0,-60px);transform:rotate(30deg) translate(0,-60px);border-radius:10px;position:absolute;"></div>
... (additional code omitted for brevity)
</div>
</div>
The CSS for centering is as follows:
text-align: center; display: table-cell; vertical-align: middle;