newphpcoder Posted November 11, 2010 Share Posted November 11, 2010 Good day! I have a pure php code, so my table was in echo and I want to change the font and font-size of text in table header but when I put thid code: echo "<font size="18" face='Arial'>"; echo "<table>"; and at the lower part i close it echo "</table>"; echo "</font>"; It only take effect in the text outside the table. and when I try to put it on the <table> It doesn't take effect. Thank you in advance Link to comment https://forums.phpfreaks.com/topic/218357-add-code-for-font-size-under-php-echo-code/ Share on other sites More sharing options...
dheeraja Posted November 11, 2010 Share Posted November 11, 2010 just use CSS for any type of formatting like Put this code to head Section <style type="text/css"> .format_table {font-size: 24px; font-family:Arial; } </style> Now jst do the following stuff echo "<table class='format_table'>"; echo "</table>"; Link to comment https://forums.phpfreaks.com/topic/218357-add-code-for-font-size-under-php-echo-code/#findComment-1132922 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.