Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Tables & Charts

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 21st, 2009, 02:48 PM
kshell kshell is offline
Forum n00b
 
Join Date: Aug 2009
Posts: 3
Default Centering a table

I'm trying to center text in the cells in a table and it is still aligning left. Here is my code for the start of the table:

<table Margins=top:40;bottom:40 Columns=4 alignment=center RowRules=Default:thin,Gray><column width=14500'><column width=7000><column width = 12500><column width = 19550>
Reply With Quote
  #2  
Old August 24th, 2009, 06:31 AM
tobarstep tobarstep is offline
Regular Contributor
 
Join Date: Sep 2008
Location: Florida
Posts: 71
Default Re: Centering a table

You'll need quotes around your attribute values, but there is no attribute of a table or cell that will center the text in the cell - the alignment attribute of the table tag is the position of the table itself in the text frame. You'll have to use a paragraph tag inside the cell tags to change the alignment of the text within a cell.
Code:
return '<table columns="3">' +
'<column width="7200"><column width="7200"><column width="7200">' +
'<row type="body">' +
'<cell rulings="left:thin,black;right:thin,black"><p br="false" quad="L">Left' +
'<cell rulings="left:thin,black;right:thin,black"><p br="false" quad="C">Center' +
'<cell rulings="left:thin,black;right:thin,black"><p br="false" quad="R">Right' +
'</table>';
__________________
FusionPro VDP 9.3.12 Desktop/Server
Windows 7 Enterprise / Windows Server 2008 r2
Acrobat X
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.