[dokuwiki] Re: How to apply CSS to single page (or, even better, section of a page)

  • From: Michael Haschke <michael.haschke@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 16 Jun 2011 13:05:51 +0200

Hi Chris,

2011/6/16 Chris G <cl@xxxxxxxx>:
> I want to apply some styles to a specific table created in Dokuwiki and
> I can't see how to do it.

You could wrap your Dokuwiki table in a div#mytable, using the <html>
wiki markup, at the same place you should be able to apply some
<style>, most browsers using it even <style> is not valid in <body>.
Hope this quick'n'dirty fix description wasn't to short :)

A clean solution would be to write two syntax plugins, one to read css
blocks from a wiki page, adding those via event listeners to the
header. The other one to create #id blocks around wiki markup
elements. Check the plugin list, maybe that stuff is already there.

cheers,
Haschek

-- 
Portfolio: http://eye48.com/
FOAF/WebID: http://michael.haschke.biz/
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: