1. Keep it ‘flat’ – nested css means possible breaking design when elements get moved. Only nest when specificity is necessary.
  2. Assume you will repeat your styles – styling a box with text in it? Rather than styling that box alone, create a class that contains the styles for that box, so when you want to use it again, all you need to do is add the class. A well designed webpage will have similar styles that are repeated anyways.
  3. more to come…

Leave a Reply

Your email address will not be published. Required fields are marked *