simple vertical align

Super simple and easy way to vertically align css elements. Picked this up from @mrdoob

Let’s say you want to have some text or html element to float center horizontally and vertically with css. One way is using percentages, but can get messy and can potentially cause some headaches like your site not displaying correctly on all window sizes.

Demo

comments