blob: eeef015ef8b6cbac921224fe08648b97ddc68554 [file] [log] [blame]
version=pmwiki-2.0.beta28 ordered=1
newline
agent=Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
author=Radu
host=24.43.175.212
name=PmWiki.SimpleTables2
post= Save
rev=13
targets=PmWiki.SimpleTables,PmWiki.AdvancedTables,PmWiki.DocumentationIndex
text=!!! Formatting tables²²'''Table attributes:''' Any line that begins with [@||@] but doesn't have a closing [@||@] sets the table formatting attributes for any tables that follow. These attributes can control formatting such as border, width, alignment, bgcolor, cellpadding and cellspacing. Width may be specified in percent or in pixels. Colors may be specified either as named colors or #rrggbb codes (hint: always use lowercase letters for rgb values--i.e., [@#ff0000@] and not [@#FF0000@] for red). Cellpadding is the space between cell contents and the sides of the cell; cellspacing is the space between cells.²²'''''Example 1. Changing border and alignment.''''' ²²This markup:² [=² || border=10 align=center² || cell 1 || cell 2 || cell 3 ||² || cell 1 || cell 2 || cell 3 ||=]²²creates this table:²²|| border=10 align=center²|| cell 1 || cell 2 || cell 3 ||²|| cell 1 || cell 2 || cell 3 ||²²'''''Example 2. Changing color.''''' ²²This markup:² [=² || border=1 bgcolor=red align=center² || cell 1 || cell 2 || cell 3 ||² || cell 1 || cell 2 || cell 3 ||=]²²creates this table:²²|| border=1 bgcolor=red align=center²|| cell 1 || cell 2 || cell 3 ||²|| cell 1 || cell 2 || cell 3 ||²²'''''Example 3. Changing width with percent.''''' ²²This markup:² [=² || border=1 width=100% bgcolor=yellow² || cell 1 || cell 2 || cell 3 ||² || cell 1 || cell 2 || cell 3 ||=]²²creates this table:²²|| border=1 width=100% bgcolor=yellow²|| cell 1 || cell 2 || cell 3 ||²|| cell 1 || cell 2 || cell 3 ||²²'''''Example 4. Changing width with pixels and color with HTML.''''' ²²This markup:² [=² || border=1 width=350 bgcolor=#cccccc align=center² || cell 1 || cell 2 || cell 3 ||² || cell 1 || cell 2 || cell 3 ||=]²²creates this table:²²|| border=1 width=350 bgcolor=#cccccc align=center²|| cell 1 || cell 2 || cell 3 ||²|| cell 1 || cell 2 || cell 3 ||²²'''''Example 5. Changing cellpadding.''''' ²²This markup:² [=² || border=1 width=350 cellpadding=10 align=center² || cell 1 || cell 2 || cell 3 ||² || cell 1 || cell 2 || cell 3 ||=]²²creates this table:²²|| border=1 width=350 cellpadding=10 align=center²|| cell 1 || cell 2 || cell 3 ||²|| cell 1 || cell 2 || cell 3 ||²²'''''Example 6. Changing cellspacing.''''' ²²This markup:² [=² || border=1 width=350 cellspacing=10 align=center² || cell 1 || cell 2 || cell 3 ||² || cell 1 || cell 2 || cell 3 ||=]²²creates this table:²²|| border=1 width=350 cellspacing=10 align=center²|| cell 1 || cell 2 || cell 3 ||²|| cell 1 || cell 2 || cell 3 ||²²'''''Example 7. Choosing background.''''' ²²This markup: %red%Needs fixing!!%%² [=² || style='background-image=url(/grape/in-grape2.gif)'² || cell 1 || cell 2 || cell 3 ||² || cell 1 || cell 2 || cell 3 ||=]²²creates this table:²²|| style='background-image=url(/grape/in-grape2.gif)'²|| cell 1 || cell 2 || cell 3 ||²|| cell 1 || cell 2 || cell 3 ||²²while this:²² [=² || style=background-image=url(/grape/in-grape2.gif)² || cell 1 || cell 2 || cell 3 ||² || cell 1 || cell 2 || cell 3 ||=]²²creates this table:²²|| style=background-image=url(/grape/in-grape2.gif)²|| cell 1 || cell 2 || cell 3 ||²|| cell 1 || cell 2 || cell 3 ||²²²%trail%<<|PmWiki.DocumentationIndex|>>
time=1113254211