I have read at least five articles on stackoverflow pertaining to this problem; as well as articles like this and this. It must be possible!
I have a div within my body that I would like vertically centered on my page. Like this:
<body>
<div>I would like this to appear in the middle of the viewport.</div>
</body>
The second article above demonstrates its solution but their examples are divs inside other divs, which doesn't work for a div that you want centered within a body. I have tried having a div within a div and setting heights to 100% but that only annoyed my browser.
Please help! I don't want to have to resort to JQuery!