1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest Long Names and the <wbr> Tag

Discussion in 'Closed Suggestions' started by Jawsh, Nov 11, 2014.

  1. Jawsh

    Jawsh Formerly null0

    An issue I've noticed with my forum is long usernames breaking awkwardly. See this guy.

    wbr.PNG

    I could offer him a name change, but that's pretty annoying. A lot of people seem to register with the suspicion that spaces are not allowed.

    However, HTML5 introduces a new tag: <wbr>
    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr

    This is a suggested break.

    I think the username parser should insert <wbr> before every capital letter in a username, after the first one. This would mean the output HTML for the above guy's name would be:

    <a hrf="#" class="username">Manic<wbr>Street<wbr>Preacher</a>

    Under normal circumstances, it would continue to be one word with no breaks. In smaller elements, it'd break like this:

    wbrafter.PNG
     
  2. Amaury

    Amaury Well-Known Member

    The width of the user info box can be increased to accommodate longer usernames. Additionally, what if this user's username were Manicstreetpreacher?
     
  3. Jawsh

    Jawsh Formerly null0

    I like the width as it is.

    I can't help users that make no attempt at having their names be readable. If his name was "manicstreetpreacher" he would't really care if his name was broken because his name is hard to read to begin with.
     

Share This Page