gretad711 / colmar

0 stars 0 forks source link

Don't Repeat Yourself or the DRY method #6

Open tommygebru opened 5 years ago

tommygebru commented 5 years ago

Consider using the DRY method to apply css styles to the html elements once or few times, instead of having to write out font-family in your css document multiple times. For example:

body {font-family: Helvetica;}

You can also stack your css selectors to group styles and apply them once 👍 For example:

h1, h2, a {font-weight: bold}
gretad711 commented 5 years ago

Is it bad practice to stack css selectors that are flex items? for example: .mobile-banner, .mobile-image, .altered-info { display: flex; }

.banner-content, .class-list, .info-block { flex-direction: column; }