[pmwiki-users] Re: %dlcol% (was: Cookbook -was PmWiki/DocumentationIndex))
chr at home.se
chr at home.se
Mon Jun 20 10:23:25 CDT 2005
On Mon, 20 Jun 2005, Patrick R. Michaud wrote:
> On Mon, Jun 20, 2005 at 09:07:34AM +0200, chr at home.se wrote:
> > > $HTMLStylesFmt['columnlist'] = "
> > > dl.dlcol dt { float:left; padding-right:0.5em; }
> > > dl.dlcol dd { margin-left:13em; }\n";
> > >
> > > $WikiStyle['dlcol']['apply'] = 'list';
> > > $WikiStyle['dlcol']['class'] = 'dlcol';
> >
> > I tried getting the above to work by shoving into my config.php, but
> > nothing happens... am I missing something?
> >
> > /Christian
> >
> > PS. Ideally I'd like a style that gives me a definition list looking like
> > this:
> >
> > Term Definition paragrapht that will be
> > continued on the next line.
> >
> > AnotherTerm Definition paragraph that also
> > is continued on the next line.
>
> If you just change the margin-left value to something smaller
> you do indeed get the behavior you're asking for here. If you
> want the indentation to be the same as normal definition lists,
> use "margin-left:40px;" .
Thanks. I ended up using this:
if(true) {
$HTMLStylesFmt['columnlist'] = "
dl.dlcol dt { float:left; padding-right:0.5em; font-style: italic; }
dl.dlcol dd { margin-left:4em; width:25em; }\n";
$WikiStyle['dlcol']['apply'] = 'list';
$WikiStyle['dlcol']['class'] = 'dlcol';
}
Note the 'italic' on the definition term, makes it better looking IMHO.
/Christian
PS. Using 'font-weight: bold;' for the dt produced a somewhat surprising
result for me...
PPS. The conditional wrapper is just there to make it easy for me to
disable the code snippet.
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list