SweatCoder SweatCoder - 1 year ago 88
HTML Question

Avoid wrapping text in CSS

I have a new website I'm building and the CSS forces any text inside h2 tags to wrap whenever there is a space. Here's the site:


And here's the problem:

enter image description here

If I put "Low Fees" together without a space, and even add a few chars ("LowFeesABC"), it stays together and doesn't wrap. I don't know CSS well enough to know how to keep the text together. Any ideas?

Answer Source

It wraps because the element has a fixed width set on it and the text ”LOW FEES” does not fit into that width. Simply removing width:90px removes the wrapping.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download