I have an h1
tag with each word wrapped in a span with a class such as word1 word2
etc.
I need to wrap these words in a specific order.
The sentence is "software designed to make life easier."
I need this to be broken up so it is formatted as such:
software
designed
to make
life easier.
I do not have the ability to change the h1 to include line breaks so I am having to wrap each word with a span using jQuery.
<h1 class="et_pb_module_header">
<span class="word1">software</span> <span class="word2" style="">designed</span> <span class="word3">to</span> <span class="word4" style="">make</span> <span class="word5" style="">life</span> <span class="word6">easier.</span>
</h1>
?](https://stackoverflow.com/questions/2703601/how-to-give-line-break-from-css-without-using-br) – Carsten Løvbo Andersen Dec 13 '17 at 11:31
` instead of `` . If you don't understand about inline vs block-level, and which elements default to which display type then please research the "display" CSS property. – ADyson Dec 13 '17 at 11:34