Jump to content

add code for font size under php echo code


newphpcoder

Recommended Posts

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

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>";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.