
What would be the best way to break a word in the middle (or after a certain number of characters or syllables) and connect the two words “parts” with a line. Basically, imagine a very long flexible underscore.
The goal is that "word___part" always be 100% of the parent container. This means that when you scale or enlarge the browser window, it should fully respond.
span:first-child {
float:left;
display:inline-block;
}
span.underscore {
}
span:last-child {
float:right;
display:inline-block;
}
<span>Auto</span><span class="underscore"></span><span>mation</span>
Run codeHide resultHow would you approach this? Flexbox
In addition, the meta goal would be to set the word divided by dynamic cms. The meaning of the word "Automation" comes from the backend.