Jump to content

alignment in table cells


mcantrell

Recommended Posts

Sure, just prepend a <p> tag to the cell contents and set the "quad" attribute, for instance: <p quad=C> for center aligned.

If you want to adjust the alignment without starting a new paragraph, you can use set the "br" attribute to false as well: <p br=false quad=R> (where "R" denotes right-aligned).

 

Left alignment is the default for all paragraphs. See the Tags Reference Guide for more information on the<p> tag.

Link to comment
Share on other sites

  • 5 years later...
Sure, just prepend a <p> tag to the cell contents and set the "quad" attribute, for instance: <p quad=C> for center aligned.

If you want to adjust the alignment without starting a new paragraph, you can use set the "br" attribute to false as well: <p br=false quad=R> (where "R" denotes right-aligned).

 

Left alignment is the default for all paragraphs. See the Tags Reference Guide for more information on the<p> tag.

I have a problem similar to this query and I tried your suggestion.

 

If I prepend a <p> tag to the cell contents and set the "quad" attribute, the alignment gets changed for all following data. How do I restrict it only for that cell

 

OR

 

I would like to have right alignment of text only for column 4 out of 5 columns.

 

Please let me know.

 

Milind Vaze.

Link to comment
Share on other sites

I have a problem similar to this query and I tried your suggestion.

 

If I prepend a <p> tag to the cell contents and set the "quad" attribute, the alignment gets changed for all following data. How do I restrict it only for that cell

 

OR

 

I would like to have right alignment of text only for column 4 out of 5 columns.

 

Please let me know.

 

Milind Vaze.

For the cells you want right-aligned, prepend this tag: <p br=false quad=R>. Then, you'll need to reset the alignment for following cells by prepending this tag: <p br=false quad=L>. It may be best to get in the habit of specifying the alignment for all of your table cells.

 

If you're using the FPTable API (as in the Frodo Travel tutorial), then you can use the .HAlign property of the cell object.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...