Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
add code for font size under php echo code
Old 11-11-2010, 02:17 AM add code for font size under php echo code
Skilled Talker

Posts: 97
Name: rhoda
Trades: 0
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 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
newphpcoder is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-11-2010, 02:55 AM Re: add code for font size under php echo code
sean1984's Avatar
Novice Talker

Posts: 9
Name: sean chow
Location: china
Trades: 0
only outside the table?

<table> ==> <tr> ==> <th> or <td> ==> <font>
__________________
icq#: 637540642
msn:
Please login or register to view this content. Registration is FREE
sean1984 is offline
Reply With Quote
View Public Profile
 
Old 11-11-2010, 03:06 AM Re: add code for font size under php echo code
lazcorp's Avatar
Average Talker

Posts: 22
Name: Martin
Trades: 0
Just use css - that's the right way
Put the fist part in <head> section
PHP Code:
<style type="text/css">
.
myclassfont-size14px;}
</
style
And that's your table code:
PHP Code:
<?
echo '<table class="myclass">';
and 
at the lower part i close it
echo "</table>";
?>
lazcorp is offline
Reply With Quote
View Public Profile
 
Old 11-11-2010, 07:37 PM Re: add code for font size under php echo code
Skilled Talker

Posts: 97
Name: rhoda
Trades: 0
Quote:
Originally Posted by lazcorp View Post
Just use css - that's the right way:)
Put the fist part in <head> section
PHP Code:
<style type="text/css">
.
myclassfont-size14px;}
</
style
And that's your table code:
PHP Code:
<?
echo '<table class="myclass">';
and 
at the lower part i close it
echo "</table>";
?>
Thank you
newphpcoder is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to add code for font size under php echo code
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32568 seconds with 12 queries