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

php - multilevel menu with multilevel array -

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

objective c - iPhone and it's wireless area -