Makzan / I share what I learned

Dealing with long words in CSS

Link: Dealing with long words in CSS

Final solution

This solution will show hyphens for every browser supporting it and will break lines in every other browser – perfect.

This is a useful technique when you need to deal with long words in your web design. For example, when you need to reference a long city name.


Published on 2015-09-25. More articles like this:
- Clip & Quote
- CSS
- Web Technologies

Previous <- Stop breaking the web
Next -> Say — Text-to-Speech Command in OSX

📬 Subscribe to Makzan’s Weekly Dispatch

Want productive tips and web technologies links like this in your inbox each week? Sign up for weekly dispatch each week. No spam ever. Just useful content:

What to expect: If you wish to withdraw your consent and stop hearing from us, simply click the unsubscribe link at the bottom of every email we send or contact us at mak@makzan.net. We value and respect your personal data and privacy. To view our privacy policy, please visit our website. By submitting this form, you agree that we may process your information in accordance with these terms.