Inspiration

This project was born out of a hackathon category so niche it felt like a dare: "Centering a Div." Naturally, I leaned in, inspired by the universal struggle of CSS and the emotional rollercoaster that is margin: auto. I set out to create something that wasn’t just functional but also hilariously relatable—a tribute to devs everywhere haunted by misaligned divs.

What it does

Centered Div Therapy is an in-browser tool that lets you visualize centering a div via changing the dimensions of your browser window while laughing at the absurdity of it all. It works seamlessly across browsers, so you can finally make peace with both Chrome and Firefox. It’s part silly, part satisfying, and 100% stress relief.

How we built it

With tears, please see "Challenges we ran into"

Challenges we ran into

I started ambitiously, aiming for an LLM-powered div, bemoaning the challenges of being centered. First challenge: the OpenAI paywall for API use. Then, the GPU drama of fine-tuning a home-brewed, local LLM. But the real challenge? Deciding to abandon the high-tech vision and embrace the silly, low-tech charm of centering a div—while making it entertaining enough to stand out at a hackathon. So, with just a few hours remaining, I went full throttle on the humor and simplicity, using HTML, CSS, JS, and Node.js to create this ode to absurdity.

Accomplishments that we're proud of

I turned a niche challenge into an app that works effortlessly and makes you laugh while doing it. The cross-browser compatibility is a win, and the playful design captures the chaotic energy of every developer’s CSS struggles.

What we learned

Sometimes, the best projects come from letting go of lofty goals and embracing the ridiculous. I learned to adapt, to find joy in simplicity, and to appreciate the comedic potential of CSS quirks. Oh, and we learned that div-centering is a journey, not a destination.

What's next for Centered Div Therapy

I'm toying with the idea of a leaderboard for fastest centering. Who knows? Maybe we'll actually bring the whiny DivBot back. But for now, we’re happy to let this little project bring a smile (and maybe a groan) to devs everywhere.

Share this project:

Updates