PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1845
Number of posts: 5011

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
add code for font size under php echo code Posted by newphpcoder on 11 Nov 2010 at 12:16 AM
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:
[PHP]
echo "<font size="18" face='Arial'>";
echo "<table>";

and at the lower part i close it
echo "</table>";
echo "</font>";

[/php]

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
Report
Re: add code for font size under php echo code Posted by pseudocoder on 11 Nov 2010 at 11:08 AM
<table>
<tbody>
<th style="font-family: arial; font-size: 18pt">header text</th>
...
</tbody>
</table>


Have you tried something like that?



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.