Imagine having the following HTML:
<div>
hello
<div>hello</div>
</div>
Wouldn't it be cool if those two texts overlapped perfectly in the center? It doesn't matter which one overlaps the other.
Do you think it's possible to achieve this with CSS?
The best I could come up with is:
<div style="position: relative; margin: 0 auto; text-align: center; width: 0">
hello
<div style="position: absolute; text-align: center">hello</div>
</div>
Unfortunately, this code ends up stacking one on top of the other instead of aligning them in the center.
We appreciate your help!