I have the following HTML:
<div id="hasToBeAbsolute">
<a></a>
<a></a>
<a></a>
</div>
Styled as follows:
#hasToBeAbsolute {
position: absolute;
display: table;
margin: 10px auto 0;
}
#hasToBeAbsolute a {
background: rgba(200, 200, 200, 0.8);
margin-left: 10px;
width: 12px;
display: block;
float: left;
height: 12px;
font-size: 0;
border-radius: 50%;
}
I want to center the 3 "a" tags within the div like this
However I have the following constraints:
- the outer wrapper must be absolutely positioned
- I can only use LESS/CSS.
- I can't add or remove any HTML.
- The width of the container must remain dynamic ("a" tags could be added or removed via JS)
Is this possible?