Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Saturday May 22, 2004
06:37 AM

Style sheets for The Perl Review

[ #18882 ]

Part of the work I am doing with The Perl Review involves transforming some of the past articles to HTML. I want to let people apply their own style sheets to it: at some point, readers will be able to set a cookie that a script uses to figure out where the style should come from.

I have a hand crafted (converted from the original TeX source, internal references still broken) example: http://www.theperlreview.com/rss.html

Play with it if you like, and tell me how to make it easier to do whatever you want to do to make it work with style sheet you want to use.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • but BTW: I think you should use instead of .
    • Forgot that HTML tags can be problematic.

      I mean you should use <span class="term"> instead of <font class="term">
      • I agree that font is silly, but I wouldn't use span unless there's no semantically appropriate tag. Whenever possible, it's good to have markup that provides a fallback presentation even without the stylesheet. The span tag should be a last resort. How about <dfn class="term"> or <em class="term">? And surely <font class="code"> should be <code>.
    • This classic [uminho.pt] format tries to be like the scientific papers on international conferences. I would like to add some more style, but for that I need xhtml instead of html.

      Inserted directly the CSS in the head of the document for simplicity. Of course it can then be extracted for a separate file.

  • One more thing: if possible use xhtml instead of html. Cheers
    • Just about anything is possible. The HTML is a quick hack job. I wanted to get it done today, but Shrek 2 had to be seen. I figured I'd let people throw tomatoes at it until I could get back to it.

      I'll turn everything into XTML on the next pass.
  • If you really want to let your users customize the look of the site, see the CSS Zen Garden [csszengarden.com] for an advanced example. Some very nice tricks there.

    ------------
    Offer Kaye