CTA Table BB Code

CTA Table BB Code 1.1.1

No permission to download
My suggestion would be not to use this Add On, but to use the ParseHTML add on instead, that way you can use HTML table codes, and get a lot more flexibility.
 
@Brogan
So, so useful. Many Thanks!
Few questions.
1. Is there a way to left align heading ?
2. Is there a way to set specific table widths for different tables? Right now if I type a longer sentence it kind of accommodates it with a wider table. Can the text wrap with a set table width.
 
Last edited:
Wrap the entire table in center tags.
Thats the first thing I tried actually. But doesnt work for the table.

Code:
[center][TABLE][TR][TH]Age[/TH][TH]England & Wales[/TH][TH]Scotland[/TH][/TR][TR1][TD]0 to 9[/TD][TD]0.21%[/TD][TD]0.25%[/TD][/TR1][/TABLE][/center]
 
The table css likely has width auto or something set.

I'm out of the office so can't check but you should be able to check the css template and edit it accordingly.
 
I removed width:auto from
Code:
.ctaBbcodeContainer
{
    width: auto;
    max-height: 600px;
    overflow: auto;
}
and then when I use CENTER tag it only centers the content within the table, not the table itself.


The table css likely has width auto or something set.

I'm out of the office so can't check but you should be able to check the css template and edit it accordingly.

I understand. Whenever you can :)
 
I just added the following to ctaBbcodeTable
Code:
margin: auto;
and it centered all tables.

But being able to center the tables on a per case basis with tags would be best. It can't do that currently.

PS: I use it not only with forum threads but also with AMS and so needed this even more.
 
Last edited:
To do it on a per table basis would require a unique class per table and not something which can be achieved with this bb code.
You would have to create a custom solution for your own needs.
 
To do it on a per table basis would require a unique class per table and not something which can be achieved with this bb code.
You would have to create a custom solution for your own needs.
Ah ok.
I just did a css edit. It now centers for articles and is left aligned for posts - Not per table control, but good enough for me. All good!
 
Back
Top Bottom