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
Post a Comment