I have a bunch of links in a div. Some have format "some-name". those with hyphen will split and wrap. I would like it to start a new line. How to do this please?
Asked
Active
Viewed 6,096 times
5 Answers
13
You can use the CSS attribute: white-space:nowrap;
But note that it is not working all the time on some browser.
The other option is to wrap your link into a <pre>
element but this approach can have some side effects as well.
-1
You can also do this:
<nobr>Table-text</nobr>
Reference:
-
1Probably because it's not good practice to recommend [Non-Standard and Obsolete html tags](http://www.w3.org/TR/html5/obsolete.html#obsolete). Per the World Wide Web Consortium - `Elements in the following list are entirely obsolete, and must not be used by authors: ... nobr ...` – Erik Philips Mar 09 '15 at 04:47