[Solved] How to center multiple divs in other div vertically and horizontally with multiple lines of divs made by clear: both?


Why not wrap each set of letters (word) in its own div? Not sure what you’re trying to achieve really, give us a bit more to go on.

EDIT. Added code example after, for clarity.

<div>
    <span>w</span>
    <span>o</span>
    <span>r</span>
    <span>d</span>
</div>
<div>
    <span>p</span>
    <span>l</span>
    <span>a</span>
    <span>y</span>
</div>

2

solved How to center multiple divs in other div vertically and horizontally with multiple lines of divs made by clear: both?