Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

i'd rather see something like the sample html below. i don't understand the use of an unordered list with anchor tags and hard breaks instead of list items, and i think a table offers more control. note that i added a row header, "Table of Contents." also, i renamed the existing css class and added others, and added a comma-space-hard break after New Notes.

<table class="nnTOC" cellspacing="0"> <tr> <th class="nnTOCtop" name="toc_top"><a href="#toc_top">Table of Conten +ts</a></th> </tr> <tr> <td class="nnTOCbody"> There are <br /> <a href="#toc_New Discussion">5&nbsp;New&nbsp;Discussions</a>, <br /> <a href="#toc_New Questions">21&nbsp;New&nbsp;Questions</a>, <br /> <a href="#toc_New Meditations">1&nbsp;New&nbsp;Meditation</a>, <br /> <a href="#toc_New Patches">5&nbsp;New&nbsp;Patches</a>, <br /> <a href="#toc_New Perl Announcements">1&nbsp;New&nbsp;Perl&nbsp;Announ +cement</a>, <br /> <a href="#toc_New Cool Uses For Perl">1&nbsp;New&nbsp;Cool&nbsp;Use&nb +sp;For&nbsp;Perl</a>, <br /> <a href="#toc_New Code">1&nbsp;New&nbsp;Code</a>, <br /> <a href="#toc_New Notes">234&nbsp;New&nbsp;Notes</a>, <br /> and <a href="#toc_New Users">12&nbsp;New&nbsp;Users</a><br /> not yet reviewed... </table>

here's how it looks:

Table of Contents
There are
5 New Discussions,
21 New Questions,
1 New Meditation,
5 New Patches,
1 New Perl Announcement,
1 New Cool Use For Perl,
1 New Code,
234 New Notes,
and 12 New Users
not yet reviewed...

no css changes are neccessary to view this properly in any browser. with a little css magic, it's possible to make the TOC body appear on fewer lines: <style> .nnTOCbody br { display: none; }</style>

let me know what you think.

~Particle *accelerates*


In reply to Re^3: Table of Contents in Newest Nodes by particle
in thread Table of Contents in Newest Nodes by demerphq

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-25 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found