Re: [pmwiki-users] Indenting an entire table to line up with text.
>> 1. as a wikistyle - put >> $WikiStyle['indent2']['margin-left'] = '80px'; to your config.php >> >> or >> >> 2. as a CSS style - put .indent2 { margin-left:80px; } >> to your CSS (pmwiki.css or other file depending on your skin) >> >> I prefer second option. >> >Thank you. The "... class=indent ..." worked and helps! > However, I have no clue how to "add a class" and a 15 minute > effort searching the PmWiki mail archives and PmWiki > documentation rendered zero useful information. I, too, have watched with amazement and envy (wink) as people have solved problems with CSS. It seems to be some kind of black box which those who have the key are able to do marvelous things with... Would it be possible for some of you in possession of this "key" to put together a cookbook page with just some brief practical examples of how to use CSS (Cookbook/Styles, perhaps)? The examples would need to start at a pretty basic level (i.e., "look for the pmwiki.css file in the pub/skins/pmwiki directory and look for the line that looks like this and add a line underneath" kind of thing). I'm not thinking a 20-page tutorial, but rather some practical examples (indenting a table, etc) with brief explanations of things that can be accomplished with these styles... A 20-minute "making a copy of the key" would be invaluable to those of us keyless (clueless?) ones... Thanks! -Peter PS Within pmwiki.org there are some pages that provide valuable portions of what I'm looking for. A partial list: http://www.pmwiki.org/wiki/Cookbook/OverrideCSS http://www.pmwiki.org/wiki/Cookbook/CSSInWikiPages http://www.pmwiki.org/wiki/Cookbook/WikiStylesPlus (I believe some of this has moved into core?) http://www.pmwiki.org/wiki/PmWiki/WikiStyles (Maybe this just needs to be expanded?) PPS Broadening my search outside pmwiki.org brought me these which are at least a partial answer to what I was looking for, but I still think it ought to be a cookbook... http://etc.nkadesign.com/Programming/PmWikiCSS https://cs.stanford.edu/doc/PmWiki/WikiStyles ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Indenting an entire table to line up with text.
Roman, First, thank you! I use a slightly modified version of the monobook theme. I added the line ".indent2 { margin-left:80px; }" to the end of the monobook.css, actually renamed mononei.css. Thereafter I put the "class=indent2" into the table declaration, e.g. (:table class=indent2 border=1 cellpadding=5 cellspacing=0:) and it works beautifully. Secondly, apparently when I initially replied I sent email only to your email which initially prevented this exchange from being posted to this august list. I have corrected that. Your help and wisdom will be shared. 8-) Again, thank you! - Nelson Failure is the most attentive teacher. Too bad Microsoft isn't paying attention. From: Roman [mailto:[EMAIL PROTECTED] Sent: Thursday, April 24, 2008 11:11 AM To: Ingersoll, Nelson Subject: Re: [pmwiki-users] Indenting an entire table to line up with text. Nelson, Class "indent" is built-in and it is defined as wiki style with indentation value 40px. You can add new class (style): 1. as a wikistyle - put $WikiStyle['indent2']['margin-left'] = '80px'; to your config.php or 2. as a CSS style - put .indent2 { margin-left:80px; } to your CSS (pmwiki.css or other file depending on your skin) I prefer second option. Roman On Thu, Apr 24, 2008 at 6:24 PM, Ingersoll, Nelson <[EMAIL PROTECTED]> wrote: Roman, Thank you. The "... class=indent ..." worked and helps! However, I have no clue how to "add a class" and a 15 minute effort searching the PmWiki mail archives and PmWiki documentation rendered zero useful information. I suspect it has something to do with "wiki styles" and skins/themes which are areas I've only scratched so far. However, you planted the seed of a thought in my mind which may yet grow. Thanks again. - Nelson From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roman Sent: Thursday, April 24, 2008 4:05 AM To: pmwiki-users@pmichaud.com Subject: Re: [pmwiki-users] Indenting an entire table to line up with text. You can use class in table: (:table class=indent border=1 cellpadding=5 cellspacing=0:) In your case you should add new class for second level .indent2 { margin-left:80px; } and then use (:table class=indent2 border=1 cellpadding=5 cellspacing=0:) Roman On Thu, Apr 24, 2008 at 12:49 AM, Ingersoll, Nelson <[EMAIL PROTECTED]> wrote: I am trying to figure out how to indent a table. The indentation requirement is simple enough. I want the table to align with an existing indent. Take this example PmWiki snippet: **(:toggle div=aaa init=hide lshow='' lhide='':) (:div1 id=aaa:) (:table border=1 cellpadding=5 cellspacing=0:) (:cell:) '''System''' (:cell:) '''Contact''' (:cell:) '''Email''' (:cell:) '''Phone''' (:cellnr:) BLEH (:cell:) John Doe (:cell:) [EMAIL PROTECTED] (:cell:) (:cellnr:) HELB (:cell:) Nelson Niceguy (:cell:) nelson's not here anymore (:cell:) 111-222- (:cellnr:) REALLY (:cell:) Mr. Splashy Pants (:cell:) splashy.pants@ whales.xxx (:cell:) 112-123-4567 (:tableend:) (:div1end:) The table is hidden under the '' toggle-link. When I toggle the entry open I would like for the
Re: [pmwiki-users] Indenting an entire table to line up with text.
You can use class in table: (:table class=indent border=1 cellpadding=5 cellspacing=0:) In your case you should add new class for second level .indent2 { margin-left:80px; } and then use (:table class=indent2 border=1 cellpadding=5 cellspacing=0:) Roman On Thu, Apr 24, 2008 at 12:49 AM, Ingersoll, Nelson < [EMAIL PROTECTED]> wrote: > > I am trying to figure out how to indent a table. The indentation > requirement is simple enough. I want the table to align with an existing > indent. Take this example PmWiki snippet: > > **(:toggle div=aaa init=hide lshow='' lhide='':) > (:div1 id=aaa:) > (:table border=1 cellpadding=5 cellspacing=0:) > (:cell:) '''System''' > (:cell:) '''Contact''' > (:cell:) '''Email''' > (:cell:) '''Phone''' > (:cellnr:) BLEH > (:cell:) John Doe > (:cell:) [EMAIL PROTECTED] > (:cell:) > (:cellnr:) HELB > (:cell:) Nelson Niceguy > (:cell:) nelson's not here anymore > (:cell:) 111-222- > (:cellnr:) REALLY > (:cell:) Mr. Splashy Pants > (:cell:) splashy.pants@ whales.xxx > (:cell:) 112-123-4567 > (:tableend:) > (:div1end:) > > > The table is hidden under the '' toggle-link. When I toggle the entry > open I would like for the table to align with the '**' indentation. Ideally > the indentation might follow along the same rules as a '*', '**', '***' > indentation. Is there a way to do this? Thank you for your help. > > - Nelson <-- banged head as a young programmer. > > ___ > pmwiki-users mailing list > pmwiki-users@pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] Indenting an entire table to line up with text.
I am trying to figure out how to indent a table. The indentation requirement is simple enough. I want the table to align with an existing indent. Take this example PmWiki snippet: **(:toggle div=aaa init=hide lshow='' lhide='':) (:div1 id=aaa:) (:table border=1 cellpadding=5 cellspacing=0:) (:cell:) '''System''' (:cell:) '''Contact''' (:cell:) '''Email''' (:cell:) '''Phone''' (:cellnr:) BLEH (:cell:) John Doe (:cell:) [EMAIL PROTECTED] (:cell:) (:cellnr:) HELB (:cell:) Nelson Niceguy (:cell:) nelson's not here anymore (:cell:) 111-222- (:cellnr:) REALLY (:cell:) Mr. Splashy Pants (:cell:) splashy.pants@ whales.xxx (:cell:) 112-123-4567 (:tableend:) (:div1end:) The table is hidden under the '' toggle-link. When I toggle the entry open I would like for the table to align with the '**' indentation. Ideally the indentation might follow along the same rules as a '*', '**', '***' indentation. Is there a way to do this? Thank you for your help. - Nelson <-- banged head as a young programmer. ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users