stylesheet - css: many sibling selectors on the same line -


in stilesheet have similar of follows:

h2.foo1 ~ p.bar1 { ... }  h2.foo2 ~ p.bar2 { ... }  h2.foo3 ~ p.bar3 { ... }  

since properties defined within brackets same all, can combine above lines in one, , how? is, similar to:

h2.foo1 ~ p.bar1 (?) h2.foo2 ~ p.bar2 (?) h2.foo3 ~ p.bar3(?) { ...  } 

comma.

h2.foo1 ~ p.bar1, h2.foo2 ~ p.bar2, h2.foo3 ~ p.bar3 { ... } 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -