Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
padolsey
on April 20, 2015
|
parent
|
context
|
favorite
| on:
How to Center in CSS
With no defined height you can still use the `translate(-50%, -50%)` hack, right? I'm kinda surprised it hasn't been mentioned in this thread at all; I use it all the time.
http://codepen.io/padolsey/pen/NqKzVG
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: