mcantrell Posted March 11, 2009 Share Posted March 11, 2009 Is there a way to change the alignment on individual table cells so some can be aligned left and some can be centered? Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted March 11, 2009 Share Posted March 11, 2009 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. Quote Link to comment Share on other sites More sharing options...
milind.vaze Posted August 17, 2014 Share Posted August 17, 2014 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. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted August 19, 2014 Share Posted August 19, 2014 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. Quote Link to comment Share on other sites More sharing options...
milind.vaze Posted August 25, 2014 Share Posted August 25, 2014 Hello Dan: Many thanks for your guidance. On prepending the appropriate <p> tags to the cell contents, I got the alignment of columns as required. Regards. Milind Vaze. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.