On 9/15/2010 6:48 PM, Bill Buklis wrote:

I'm trying to create a wiki page that contains tables side by side as in a two column page format. I'm using trac 0.12. In order to do this I set up a page using nested tables. The following sample code works successfully with one caveat. The outer table (which is otherwise not visible) is surrounded by a border. I'd like to remove this border. It seems logical to wrap the code using a "{{{#!table processor with appropriate styles, but trac errors out with the message:

*!#table must contain at most one table*

Is there any way to get around this?


Unfortunately no, that's indeed a limitation of #!table in 0.12. Wait for 0.13?


Is there a better processor to use than "{{{#!td"? Unfortunately because of the way the table processor is implemented, it seems impossible to apply any styles, classes to the outer table if there are any nested tables.


A workaround would be to wrap your setup in some div (e.g. #!div class="borderless"), and do something appropriate in your site.css (e.g. .borderless > table { border: none }). Alternatively, you can easily achieve multi-column set up by using #!div style="float: left, width=45%" and such.

Working code with undesired surrounding border:

{{{#!td style="border:none;vertical-align:top;padding-right:100px;padding-left:20px;padding-top:20px;padding-bottom:20px"

= Left Side Table =

||='''Column L.A''' =||='''Column L.B'''=||


Hope this helps!

-- Christian

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to