Let’s say I have an unordered list element displaying list items across a horizontal row (inline), but the content is wider than the containing element. Is there a way to get them to simply run off the page instead of dropping to a new line without using absolute positioning?
Let’s say I have an unordered list element displaying list items across a horizontal
Share
Sure there is, just use:
JS Fiddle demo.
This forces the contained content to continue along one, non-wrapping, line.
References:
white-spaceproperty, at MDN.