Can you add line breaks to the :after pseudo element?

Viewed 58539

I want to append a <br /> to a particular class. Using the :after pseudo class simply displays <br /> as text.

Is there a way to make this work?

It's internal for IE8 so browser issues aren't a problem. If I do

<span class="linebreakclass">cats are</span> brilliant

I want "brilliant" to appear on a new line.

4 Answers

You can either add a custom icon from your assets, by doing simply ..

 &:after {
    content: url('~content/icons/drop-down-arrow.png');
  }
Related