{"id":255923,"date":"2017-07-03T05:33:19","date_gmt":"2017-07-03T12:33:19","guid":{"rendered":"http:\/\/css-tricks.com\/?p=255923"},"modified":"2017-07-03T05:33:19","modified_gmt":"2017-07-03T12:33:19","slug":"css-is-awesome","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/css-is-awesome\/","title":{"rendered":"CSS is Awesome"},"content":{"rendered":"

I bought this mug recently for use at work. Being a professional web developer, I decided it would establish me as the office’s king of irony. The joke on it isn’t unique, of course. I’ve seen it everywhere from t-shirts to conference presentations.<\/p>\n

<\/p>\n

\"\"<\/figure>\n

Most of you reading this have probably encountered this image at least once. It’s a joke we can all relate to, right? You try and do something simple with CSS, and the arcane ways in which even basic properties interact inevitably borks it up.<\/p>\n

If this joke epitomizes the collective frustration that developers have with CSS, then at the risk of ruining the fun, I thought it would be interesting to dissect the bug at its heart, as a case study in why people get frustrated with CSS.<\/p>\n

The problem<\/h3>\n

See the Pen CSS is Awesome<\/a> by Brandon (@brundolf<\/a>) on CodePen<\/a>.<\/p>\n

There are three conditions that have to be met for this problem to occur:<\/p>\n