[TYPO3] Tables centered by default
Tyler Kraft
tyler.kraft at netefficiency.co.uk
Thu Jul 31 10:15:15 CEST 2008
Hi,
I suspect that's because its a deprecated attribute. Try putting in
style="margin:0 auto;" and see if that works (it won't solve the problem
in IE6 thought)
If IE6 is a concern than you need to wrap the table in a div with
style="text-align:center" to center the tabel and athen apply either a
class or inline style to the table itself with text-align:left
20.stdWrap.wrap = <div style="text-align:center;">|</div>
20.tableParams_0 {
border =
cellpadding =
cellspacing =
style="text-align:left"
}
hope that helps
Sergio Catalá Gil wrote:
> In file "typo3_src/typo3/sysext/css_styled_content/static/setup.txt" I
> can add some parameters to the default tables created with the backend:
>
> tt_content.table {
> 10 = < lib.stdheader
>
> 20 = USER
> 20.userFunc = tx_cssstyledcontent_pi1->render_table
> 20.field = bodytext
>
> ...
> 20.tableParams_0 {
> border =
> cellpadding =
> cellspacing =
> }
> }
>
> I can add a "border", a "cellspacing" and a "cellpadding". My interest
> would be that every table is centered by default. I tried to add this
> sentence to the code without success:
>
> align = center.
>
> The output doesn't even add it properly.
>
> Any ideas to get all tables centered?
>
> Thanks in advance,
> Sergio
>
>
More information about the TYPO3-english
mailing list