css - Apply style to more than one element -


this easy one, can no find right way this. have following style definition:

.main_section nav {     color:#999;     ... } 

so style applies a in nav in .main_section. want extend li elements affected. duplicate code, like:

.main_section nav li {     color:#999;     ... } 

but feels wrong. want unify both style specs one. how can that?

use comma (,) define same style on multiple elements

.main_section nav a,.main_section nav li {     color:#999;     ... } 

Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

mysqli - Php Mysqli_fetch_assoc Error : "Warning: Illegal string offset 'name' in" -

javascript - Chart.js - setting tooltip z-index -