Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
zavan1029ydisplay: table; for the parent, with height
display: table-cell; and vertical-align: middle; for the child
Oe justo use flexbox -
Advice from the Treehouse CSS course that worked for me:
#Parent {
position: relative;
}
#Child {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
}
Related Rants

What only relying on JavaScript for HTML form input validation looks like
How to vertically center in css..
Yeah no
We all know it's true
undefined
css
html