Style sheets for The Perl Review

brian_d_foy on 2004-05-22T11:37:42

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.


Working in one...

ambs on 2004-05-22T12:30:11

but BTW: I think you should use instead of .

Re:Working in one...

ambs on 2004-05-22T12:32:18

Forgot that HTML tags can be problematic.

I mean you should use <span class="term"> instead of <font class="term">

Re:Working in one...

vsergu on 2004-05-22T13:45:38

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>.

Re:Working in one... check it here

ambs on 2004-05-22T12:48:05

This classic 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.

xhtml vs html

ambs on 2004-05-22T12:35:27

One more thing: if possible use xhtml instead of html.

Cheers

Re:xhtml vs html

brian_d_foy on 2004-05-22T13:29:18

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.

advanced css example

offerk on 2004-05-23T13:32:47

If you really want to let your users customize the look of the site, see the CSS Zen Garden for an advanced example. Some very nice tricks there.

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