html - Applying a css style to several patterns -


How can I apply a CSS style block to many different classes? For example, I have

  & lt; Div class = "foo" & gt; ... & lt; / Div & gt; & Lt; Div class = "bar" & gt; ... & lt; / Div & gt; ... .foo .bar ??? // This selector should be applied to both classes (font size: 50%; ...}  

.foo, .bar {font-size: 50%; ...}

source:


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -