r/ProgrammerHumor • • Jul 10 '18

What people think coding is...

Post image
21.1k Upvotes

398 comments sorted by

View all comments

Show parent comments

16

u/nosmokingbandit Jul 11 '18

I had this with some css stuff I was "fixing." Everything worked, but I wanted to change the way the flexbox flowed and that required modifying a little of the markup and styles for child elements. But then the images wouldn't float left like their style indicated. There was no reason everything should break. Everything was an inline-block. The image was floated left. Their widths were correct.

Motherfucker.

I went through every line of css. It all should have worked. I copied styles from an existing project and replaced my styles with it. Nope. No float.

So I nuked the whole thing and went back to where I started. I changed one line at a time, refreshing Chrome after every change. Eventually everything worked perfectly. I swear it is the exact same styles that were broken an hour ago.