4 ms·
Off-topic: is there any CSS that can be added to stop long words like URLs from causing a horizontal scrollbar to appear, i.e. to force the word to be broken in
by ralph 19y ago
Off-topic: is there any CSS that can be added to stop long words like URLs from causing a horizontal scrollbar to appear, i.e. to force the word to be broken in two?
- nostrademons 19y agoYou can have it chop off the end of the URL with "overflow-x: hidden" and an explicit width, but the only way to have it insert a linebreak is to count characters on the server and insert a break manually.
- gojomo 19y agoYou can use a 'zero width space' ()in some browsers to hint a breakable point, but it might affect C&P-ability. Some other discussion of options here: http://gojomo.blogspot.com/2005/03/cross-browser-invisible-word-break-in.html http://gojomo.blogspot.com/2005/03/cross-browser-invisible-word-break-in.html
- ralph 19y agoThanks, 200b is was I found too after reading the CSS 2 spec.