Results 1 to 2 of 2
Thread: (_8(0) DOH!! CSS Gotchas!
Oct 26, 2012, 20:43 #1
- Join Date
- Jan 2008
- Knoxville TN
- 56 Post(s)
- 0 Thread(s)
(_8(0) DOH!! CSS Gotchas!
Earlier today at work I lost nearly 2 hours scratching my head wondering why I couldn't get an element's width right using standard padding / float tricks. I finally found the problem, a forgotten min-width call was being inherited from the ruleset meant for tablets. Easy enough to fix (min-width: 0; to override) but the min-width call wasn't being called out on Firebug which is why I didn't spot it quicker. :\
What made it especially fun was the fact I built out a testcase version of the sheet and couldn't replicate the bug (because I didn't test the other screen modes).
So, anyone want to share their own multi hour layout problems that, once found, led to a moment of "Doh!" ?
Nov 15, 2012, 04:12 #2
- Join Date
- Jun 2007
- 178 Post(s)
- 9 Thread(s)
Not nearly as complicated as that, but today I spent a good hour trying to figure out why half the tags in the tag cloud on my blog were disappearing into the Nirvana.
I spent ages playing with word-wrap and white-space, but to no avail.
Turns out that I had somehow changed display:inline-block into display:block without noticing.