#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    6
    Rep Power
    0

    Question 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
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    6
    Rep Power
    0

    Solved


    Solved by using this code (don't know why):
    white-space: pre;
    a {
    text-decoration: underline;
    color: #0F8C8C;
    white-space: pre;
    }

    If anyone can explain to me why this worked please do.

    Comments on this post

    • Kravvitz agrees : Congrats on finding the solution and thanks for posting it.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    667
    Rep Power
    6
    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.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    6
    Rep Power
    0
    Originally Posted by Triple_Nothing
    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.
    Thank you

IMN logo majestic logo threadwatch logo seochat tools logo