Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
scotty79
on July 9, 2021
|
parent
|
context
|
favorite
| on:
What does 100% mean in CSS? (2020)
So it's equivalent to setting:
left: x%; top: y%; transform: translate(-x%, -y%);
bmeski
on July 10, 2021
[–]
I use this all the time. One of the best ways to reliably center absolute elements.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: