Alok Menghrajani

Currently: security consulting and lecturer.

Previously: security engineering at Square Block. Co-author of Hack (the programming language) and put the 's' in https at Facebook Meta. Maker of various CTF puzzles.


This blog does not use any tracking cookies and does not serve any ads. Enjoy your anonymity; I have no idea who you are, where you came from, and where you are headed to. Keep the dream of an Internet from times past alive.


Home | Contact me | Github | RSS feed | Consulting services | Tools & games

Center-ish is an experiment around vertically centering content on a webpage, in an incorrect manner.

The result of my experiment is a collection of 50 cursed ways to center content. Some of the methods I explore do actually work. You might even encounter them in the wild. Thankfully, most methods are just for fun, enjoy!

It used to be a running joke that vertical alignment in css was challenging. Thankfully, css has evolved and the various new layout options have addressed this gap.

xkcd-inspired joke (a joke about css based on https://xkcd.com/1168/)