LexHammer Posted December 22, 2009 Share Posted December 22, 2009 I want to make a table with bigger text font and i want the text in each cell to be centered, not aligned to right. What is the code for that? The table code {include file='header.tpl'} <center><table border="1"> <tr> <td></td> <td><b>Text1<b></td> <td><b><FONT COLOR="red">Text2</font></b></td> </tr> <tr> <td>TEST1</td> <td>TEST2</td> <td>TEST3</td> </tr> </table></center></font> {include file='footer.tpl'} Link to comment https://forums.phpfreaks.com/topic/186038-how-to-modify-font-size-and-text-position-in-table-in-tpl-smarty/ Share on other sites More sharing options...
Buddski Posted December 22, 2009 Share Posted December 22, 2009 for your <TD> tags put <td align="center"> and in your <table style="font-size:xxx(px|pt|etc)" Link to comment https://forums.phpfreaks.com/topic/186038-how-to-modify-font-size-and-text-position-in-table-in-tpl-smarty/#findComment-982610 Share on other sites More sharing options...
LexHammer Posted December 22, 2009 Author Share Posted December 22, 2009 I dont understand you. I dont have table style. Where should i put it? And where should i put "for <TD> tags put <td align="center">" Link to comment https://forums.phpfreaks.com/topic/186038-how-to-modify-font-size-and-text-position-in-table-in-tpl-smarty/#findComment-982695 Share on other sites More sharing options...
FaT3oYCG Posted December 23, 2009 Share Posted December 23, 2009 Use css. Link to comment https://forums.phpfreaks.com/topic/186038-how-to-modify-font-size-and-text-position-in-table-in-tpl-smarty/#findComment-983051 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.