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 -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -