Hey, how hard would it be to generate a "first" and "last" class in the PM code so we can do things mentioned in
CSS Design: Taming Lists? Search for "li.last:after". Then we could format these almost anyway we wanted to.
Update: For the above, in the HTML code you would do something like: <li class="last">list item here</li>
Leading space is due to the margin-left:3pt (and maybe the leading space in " | " -- didn't try since I switched to the CSS listed below).
Here's the CSS I'm using right now, which eliminates the leading "space" and places a comma and a space after each entry. If we had a "last" class as per above then we could eliminate the trailing comma. Would like to see a "first" class as well so that everyone can make their own CSS inline list code. Update: for example, enclose the list in brackets.
/* Override inline-list CSS */
li.inline, .inline-list li { display: inline; margin-left: 0pt;
+ }
li.inline:before, .inline-list li:before { content: "" }
li.inline:after, .inline-list li:after { content: "," }
ul.inline-list { display: inline; margin: 0; padding: 0; list-style: n
+one; }
Elda Taluta; Sarks Sark; Ark Arks
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.