79294438

Date: 2024-12-19 13:31:35
Score: 0.5
Natty:
Report link

I would just wrap in a flex div to ensure it always works as expected.

html {
  line-height: 1.5;
}

span {
  background-color: red;
}

.col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
<pre>
<div class="col">
  <span>line 1</span>
  <span>line 2</span>
</div>
</pre>

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