Wrapping long words with CSS or HTML

Chris Cid / filed under HTML & CSS

When a word is longer that the container’s width, a horizontal scroll on the page level will appear. There are 3 different ways to handle this issue and avoid unexpected horizontal scrolls. The lazy way: Scrolling within the container The easiest way is to add in CSS an optional horizontal scroll on the container.

Subscribe to newsletter

Best design and frontend links delivered to your inbox every day and week. No spam, unsubscribe at anytime.

Choose frequency

Privacy Policy