SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,053
    Mentioned
    66 Post(s)
    Tagged
    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!" ?

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,002
    Mentioned
    219 Post(s)
    Tagged
    12 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.
    Doh!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •