How to keep text from spilling out

Indeed. Then it’s most appropriate to share this piece of wisdom with you before you set too far down the path of frustration:

Mastering CSS is knowing where and how to force it to bend to your will.