MuyuanMa / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Group selectors in CSS #4

Open aubreywullschleger opened 6 years ago

aubreywullschleger commented 6 years ago

Simplify! I would consider adding a group selector for any repeated styles in your CSS. For example, font-family: Helvetica; is repeated a few times throughout your CSS. Instead you could use:

h1, h2, strong {
  font-family: Helvetica;
}

Then delete all instances of font-family: Helvetica; from those individual selectors. You can also delete font-weight: bold; from the strong selector as font-weight: bold; is a default style for the <strong> tag.

MuyuanMa commented 6 years ago