22
Why does nobody talk about CSS overflow issues ruining your art?
I was working on this CSS art piece late last night in my home office in Phoenix, a landscape with a sun and mountains using only divs and gradients. Everything looked perfect in my browser, then I sent it to a friend and half the mountains were just gone. Took me an hour to figure out the parent container had overflow hidden set from a reset I copied ages ago. I always just copied those resets without thinking, but now I go through every single property myself before I start coding. Ended up redoing the whole piece with proper overflow visible and it came out way better than the first try. Has anyone else had some hidden CSS default totally wreck their design out of nowhere?
2 comments
Log in to join the discussion
Log In2 Comments
kevin_murray887d ago
Honestly, this feels like a bit of an overreaction to me. I mean yeah overflow hidden can mess things up but it's like one property in one container. If you're deep enough into CSS art to be making landscapes out of divs, you've probably run into way worse stuff like flexbox not behaving or z-index wars. I've had way more projects ruined by some random float I forgot to clear than by overflow. It almost sounds like you're blaming the reset when really you just didn't check your layout before sending it off.
3