[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:29:02 +0100

On Thu, Jun 16, 2011 at 02:20:12PM +0100, Chris G wrote:
> 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.
> 
Aha! .... after some further experimentation I have got this to work,
I'd obviously not done it quite right the first time around.  This will
do for what I want at the moment, "quick and dirty" is fine!  :-)

Thanks again for encouraging me to keep trying.

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

Other related posts: