As per a previous post, I've gone and made some minor changes to the way that the newest nodes are shown. Prior to this change, your browser would get a class of "node-from-#####" where ##### is the node ID of the author of the node. Now, every alternate entry will get a class of "NN-highlight".

Note: this class matches the class of the CB. If you want hilighting to be different in CB vs newest nodes, you'll need to embed your CSS a bit differently. I think ".cb_table .highlight" will work for the CB, leaving ".highlight" to work for both or, if overridden for the CB, only for the newest nodes.

Old (slightly reformatted):

<table><tr class="node-from-391408"><td><a href="?node_id=543621">Puzz +le: Longest Increasing Sequence</a></td> <td>by <a href="?node_id=391408">TedPride</a></td></tr> <tr class="node-from-507927"><td><a href="?node_id=543595">calculating + the bpm of a song in mp3 format</a></td> <td>by <a href="?node_id=507927">keiusui</a></td></tr>
New (again, slightly reformatted):
<table><tr><td class="node-from-391408"><a href="?node_id=543621">Puzz +le: Longest Increasing Sequence</a></td> <td class="node-from-391408">by <a href="?node_id=391408">TedPride</a +></td></tr> <tr class="NN-highlight"><td class="node-from-507927"><a href="?node_i +d=543595">calculating the bpm of a song in mp3 format</a></td> <td class="node-from-507927">by <a href="?node_id=507927">keiusui</a> +</td></tr>
What we've done is move the node-from-##### class into the td's so that we can give the highlight class to the tr's.

How to take advantage: update your CSS to highlight these highlight rows the way you want. By default, you won't see any difference, unless you've already done this for the CB. See Recent changes to the color schemes for information on how/when the CB got this feature.

(Update: demerphq promised to apply the patch after seeing this note - so you may not see this change yet.)

Update: We've changed the class to NN-highlight due to the complaints (thanks, Corion). So now the people who want the highlighting will need to add this to their CSS manually.


In reply to Hilighting Newest Nodes (implemented) by Tanktalus

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.