Re: [Trac] WikiHtml: div class= examples wanted
On Thu, 2010-04-01 at 11:11 +0200, Christian Boos wrote:
> On 4/1/2010 10:51 AM, Roger Oberholtzer wrote:
> > In the WikiHtml doc page, there is an example of using the div directive
> > to get text into a box. It uses a class called 'important'. I confess
> > that I am not an HTML programmer. Beyond the simplest stuff. I googled
> > this, but only got generic info on the class directive. It implied that
> > the values were locally defined. Nonetheless, how could I find which
> > ones are available (pre-defined) in a Trac wiki page?
> >
> >
>
> None yet, besides the documented ones, "important" and "wiki", the
> latter being the default used if you specified no other class
> explicitly. "wiki" adds some left margin to compensate for the negative
> left margin used for headings. You can also specify class="" so that the
> "wiki" default class is not used
>
> I think it would be nice to have a few more default classes, like
> MoinMoin's admonitions (http://moinmo.in/HelpOnAdmonitions).
Those would indeed be nice. We often have such parenthetical
information. Thanks for the pointer.
> Adding local classes can be done via a local site.css, see
> http://trac.edgewall.org/wiki/CookBook/SiteStyleCss for some examples.
Dumb question: where do I tell that I would like a css file added? I
thought I would put this line in my site.html:
<link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="site.css" />
(Continue reading)