Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Horizontally centering an absolute element Reply To: Horizontally centering an absolute element

#197505
Shikkediel
Participant

Not really another question

For that matter, I get this one even less than the case I started this topic about. But it’s a stretch to ask anyone to check it out like described above, so here’s a reduced version :

Centering a text larger than it’s link space

Apart from the absolute position, still quite on topic. But what I don’t understand is the very last line of CSS. Until that it sort of makes sense but giving it a margin of -100% only seems to move it 50% to the left?

Removing the positioning on the span (possibly inserting a shorter word) will show how it looks without this extra centering, even with text-align: center applied. I think CSS might sometimes stand for Complicated Strange Secrets, lol.