DEV Community

Discussion on: Tell me about the worst CSS you've ever had to deal with

Collapse
 
hus_hmd profile image
Hussein Al Hammad

I was tasked with making a large number of seemingly small changes on an existing project. Most CSS changes I attempted broke the layout in one way or another. A simple task like increasing the font size of an element would turn into an hour-long task because it would break the layout of the element, its parent element and the parent's sibling elements.

I was the third or fourth developer to be brought in. Inline CSS everywhere (including in the HTML added to text fields in the CMS). Bootstrap + 1000s of lines of custom CSS.

The whole thing was a nightmare; not just the CSS.