📢
26
c/coding-for-beginners•price.tylerprice.tyler•1mo agoProlific Poster

Tried a weird trick for a tight corner and it actually held up

I was working on a simple website and my text kept running outside its box on small screens. After two hours of trying different things, I watched a video from a coder in Chicago who said to use 'overflow-wrap: break-word' in the CSS. I put it in, and it fixed the problem right away. Has anyone else found a simple CSS fix that saved them a lot of time?
2 comments

Log in to join the discussion

Log In
2 Comments
jana_henderson52
jana_henderson521mo agoMost Upvoted
My friend was going crazy because her buttons kept stacking wrong on mobile. She found a forum post that said to add "flex-shrink: 0" to the button CSS. It was a total game changer and fixed her layout in like two minutes.
6
abbyk10
abbyk101mo ago
Flex shrink is a lifesaver for weird flexbox bugs.
1