Nice idea. Thanks alot for putting this up Eliya. :)
I'm not sure where you found the a.nnt-link style but unfortunately it didn't work for me. I looked at the CSS and found h3.other

h3.other { max-width: 30em; display: block; margin-right: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } p a { max-width: 50em; display: block; float: left; margin-right: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

This works - ok - right now. (Though also in the "works for me" stage) Adjust the max-width to your taste.

I don't find this to be a too much of a recurring problem IMO but it's definitely a nice option to have for stretches when PM node titles trend long. Again, thank you Eliya for bringing it up and providing a solution all at once. ++

Luis

UPDATE: added the p a style.


"...the adversities born of well-placed thoughts should be considered mercies rather than misfortunes." — Don Quixote

In reply to Re: CSS to trim overly long node titles by luis.roca
in thread CSS to trim overly long node titles by Eliya

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.