manok2912 / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Simplify the CSS code for shared properties. #8

Open josephtkim opened 7 years ago

josephtkim commented 7 years ago

It is a good idea to try and simplify the CSS code to make the code cleaner and to remove repetitive code. You can do this by applying shared properties to multiple elements at once, rather than individually. Some properties that are shared in the document for all elements are the font-family and font-weight properties. You can simplify this by applying it to each element individually, or by the parent element, like

h1, .sh, span {
  font-family: Helvetica;
  font-weight: bold;
}

or

body {
  font-family: Helvetica;
  font-weight: bold;
}
manok2912 commented 7 years ago

helpful