How can I change the default attributes for tables created using PmWiki.Tables?
In a local configuration file, set $BlockMarkups['table'] to the value that you would like to be used for a table's opening <table> tag. Examples:
$BlockMarkups['table'] = "<table width='100%'>"; $BlockMarkups['table'] = "<table border='1'>"; $BlockMarkups['table'] = "<table width='100%' class='simpletable'>";
(Using width='100%' in an Internet Explorer environment can cause problems if the surrounding text block has margins. What seems to happen is IE treats the 100% as 100% of the browser width. If the left margin is, say, 20px, the table then protrudes 20px into the right margin. Other browsers don't behave this way.)
- Pm, 2004-11-30
See discussion at DefaultTableAttributes-Talk