[pmwiki-users] Indenting an entire table to line up with text.

Ingersoll, Nelson Nelson.Ingersoll at atmel.com
Thu Apr 24 16:12:34 CDT 2008


   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:romat2 at gmail.com] 
	Sent: Thursday, April 24, 2008 11:11 AM
	To: Ingersoll, Nelson
	Subject: Re: [pmwiki-users] Indenting an entire table to line up with text.
	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
	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.
	On Thu, Apr 24, 2008 at 6:24 PM, Ingersoll, Nelson <Nelson.Ingersoll at atmel.com> wrote:

   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: pmwiki-users-bounces at pmichaud.com [mailto:pmwiki-users-bounces at pmichaud.com] On Behalf Of Roman
		       Sent: Thursday, April 24, 2008 4:05 AM
		       To: pmwiki-users at 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:)
		       On Thu, Apr 24, 2008 at 12:49 AM, Ingersoll, Nelson <Nelson.Ingersoll at atmel.com> 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='AAAA' lhide='AAAA':)
		               (:div1 id=aaa:)
		               (:table border=1 cellpadding=5 cellspacing=0:)
		               (:cell:) '''System'''
		               (:cell:) '''Contact'''
		               (:cell:) '''Email'''
		               (:cell:) '''Phone'''
		               (:cellnr:) BLEH
		               (:cell:) John Doe
		               (:cell:) john.doe at heynow.com
		               (:cellnr:) HELB
		               (:cell:) Nelson Niceguy
		               (:cell:) nelson's not here anymore
		               (:cell:) 111-222-4444
		               (:cellnr:) REALLY
		               (:cell:) Mr. Splashy Pants
		               (:cell:) splashy.pants@ whales.xxx
		               (:cell:) 112-123-4567
		               The table is hidden under the 'AAAA' 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 at pmichaud.com

More information about the pmwiki-users mailing list