A little idea has just popped into my head - quite possibly a foolish one since it's late and I'm just about to go to bed...

  1. Add the node number (prefixed by "node") as the CSS class for all anchors generated by [id://NNNN].
  2. Add a <div></div> with a class of the current pages node number (again prefixed by "node") around each page.

This would enable some neat tricks with user-CSS. Some examples:

  1. Feeling narcissistic? Set all the links to your home node to bold, red, 20pt text and never miss a link to your home node again...
  2. Interested in what a particular monk has to say on a subject? Add a border around links to their home node on the Newest Nodes page.
  3. Don't want to see the Most Recently Added Questions section of the Q&A page? Just stop it being displayed based on the pages node number.

Sane - or should I have got some sleep before hitting submit?


In reply to Use node # as CSS class names? by adrianh

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.