CodeSOD: Well Padded
by Remy Porter from The Daily WTF on (#2DHKQ)
We don't receive many CSS-based submissions, possibly because CSS is already pretty horrible. There are real-world, practical things that you simply need to take a hacky, awkward approach with.
Matthew found this code, however, which isn't a clever hack to work around a limitation, and instead just leaves me scratching my head.
@media (min-width: $screen-lg-min) { padding: 1rem 1rem 9999px; margin-bottom: -9999px; }
I liked this approach so much I went ahead and used it on this article. It's a brillant way to control page layout.
[Advertisement] BuildMaster integrates with an ever-growing list of tools to automate and facilitate everything from continuous integration to database change scripts to production deployments. Interested? Learn more about BuildMaster!