March 20th, 2013, 10:13 AM
Line break when there shouldn't be
Hi, here is the website: freemanlegalservices.com/index.html
If you hover over documents on the top bar menu and then hover over library you can see it says "Arrest Warrants" why is there a line break between "Arrest" and "Warrants"?
Here is the HTML: pastie.org/private/ik6grooguikjvvzx3enba
Here is the CSS: pastie.org/private/dmrosclryoihhzazfh6q6w
March 20th, 2013, 11:14 AM
Solved by using this code (don't know why):
If anyone can explain to me why this worked please do.
Comments on this post
March 20th, 2013, 12:17 PM
white-space: pre; //Similar to HTML pre tag. I use nowrap
HTML's pre tag is to Preserve what was typed. It's, in your case, offering the same goal as a or Non-breaking Space. A normal space is better thought of as open, and nothing there, while the nbsp is viewed, to the browser, just like any other visible character, in return offering just one long word.
March 20th, 2013, 02:03 PM
Originally Posted by Triple_Nothing