Categories
Mastering Development

How to vertically centre elements in a div?

I have the following in HTML: and I want to vertically centre the "Name" and textbox elements in it’s respective div, so that it has even spacing at the top and bottom in the div. body, html { height: 100%; } .outer { border: 1px solid black; height: 20%; } .inner { border: 1px solid […]