Results 1 to 2 of 2
Thread: (_8(0) DOH!! CSS Gotchas!
Oct 26, 2012, 19:43 #1
- Join Date
- Jan 2008
- Knoxville TN
- 51 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!" ?