-1

In this fiddle https://jsfiddle.net/zdkL1m9j/ I have text with enumerated spans like <span class="line_num">[29] </span>, <span class="line_num">[30] </span>, etc. Each span is followed by text and other span elements.

I'm trying to output a view where the content that begins with each span class="line_num" (the number [x] and subsequent text and elements) begin on a new line (but no 'new line' on the first row - adding brwill not solve this correctly).

This is all dynamically generated, and due to limitations in the processing, I cannot change the HTML output (or I would use li to solve this).

Thanks very much in advance.

jbrehr
  • 775
  • 6
  • 19

1 Answers1

-1

Have a look at my updated fiddle:

.document-diplo .line_num:not(:first-child):before {
  content: ' ';
  display: block;
}

You can find more details on the solution here.

Tommy
  • 2,355
  • 1
  • 19
  • 48
  • If you are aware that a question is a duplicate, please do not answer it. And FYI, your selector is far more complex than it needs to be. – Turnip Oct 29 '18 at 18:56