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

  • From: Chris G <cl@xxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 16 Jun 2011 14:20:12 +0100

On Thu, Jun 16, 2011 at 01:05:51PM +0200, Michael Haschke wrote:
> 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 :)
> 
I've been trying something like this but I don't think it works because
the existing CSS for "div.dokuwiki table.inline" is more specific *and*
is 'inside' any DIV wrapper you can create using Dokuwiki's <HTML>, thus
the settings in the template CSS override anything I can add.


> 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.
> 
I don't think so, I couldn't see any references to anything like this in
the plugins documentation.

Thanks for the reply though, it does at least indicate that I'm not
completely off track!

-- 
Chris Green
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: