Bill Mei

Software Consultant Joined 3 months ago

  • 2 stories
  • 2 comments
  • 1 upvote
  • Posted to Top 10 most deadly CSS mistakes made by new and experienced designers, in reply to Liam F , Jul 29, 2019

    Indeed it's quite frustrating to see some overspecified selector like .main > div .col:nth-child(2). It just leads to a specificity war if you try to override it; like stockpiling nuclear weapons, no one wins the war, it only becomes harder to de-escalate.

    0 points
  • Posted to Top 10 most deadly CSS mistakes made by new and experienced designers, in reply to Diego Lafuente , Jul 29, 2019

    px units are perfectly fine in many situations! I use the title as an imprecise but memorable shorthand for "describe elements in relative terms (brick B should be as big as brick A) instead of absolute terms (brick B is a 200px-by-400px rectangle)". You could make the same mistake using rem, by saying "brick B is a 20rem-by-40rem rectangle" when brick B doesn't have any relative relationship to the root-em size.

    0 points
Load more comments