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 itecho "</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 Share on other sites More sharing options...
birbal Posted November 11, 2010 Share Posted November 11, 2010 it is a html-css problem.<font size="18" face='Arial'>i think it is not the right way for styling. you may do something like this. <table style="font-size:12;color:red"> or you may use a externel stylesheets and do something like <table class="mytable"> class mytable will be defined in a external css file which will added under <head> tag. <head><link rel="stylesheet" type="text/css" href="mystyle.css" /></head> http://www.w3schools.com/css/css_howto.aspif you want to change only table header do same with <th> <th style="........"> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.