Given this markup
<div>
<span>foo</span>
<span>bar</span>
<span>some really long text with word breaks</span>
<span>baz</span>
</div>
This displays as
foo bar some really long text with word breaks baz
I want it to display as
foo bar some really
long text with word
breaks baz
Using the answers to these other questions:
I am able to accomplish this if the <div>
contains text directly in it. But once the text is split up into <span>
s inside the ` these techniques no longer work.
Given that I cannot do away with the <span>
s, how can I go about doing this?
EDIT:
Chrome web inspector lists the <div>
's current CSS as:
color: rgb(0, 105, 173);
display: block;
font-family: Arial, sans-serif;
font-size: 25px;
font-weight: bold;
height: 93px;
margin-bottom: 0px;
margin-left: 208px;
margin-right: 208px;
margin-top: 0px;
text-align: center;
text-shadow: rgb(255, 255, 255) 0px 0px 3px;
width: 300px;