79081763

Date: 2024-10-12 19:46:11
Score: 0.5
Natty:
Report link

the accepted answer is outdated.

today, the correct answer would be to use the is pseudo-class which is now supported by all browsers:

support for is:

p {
  margin: 0;
}

:is(p, div) + :is(p, div) {
  margin-top: 24px;
}
<p>lorem ipsum</p>
<div>hello</div>
<p>consecetur loremis pestillis</p>
<div>world</div

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: eballeste