ChompGator Posted September 7, 2008 Share Posted September 7, 2008 Hey, I have a script here, and the HTML text is displaying in a small enough size, I just want to get the data within the table that PHP is displaying to display in a smaller font..I want to reduce it to about a 9...But Ive tried adding a few different commands within my PHP and I can't get the text within my <?php ?> tags to display smaller - Was hoping someone might be able to help me out, here's the script: <table> <tr> <td align="center">Legion Members</td> </tr> <tr> <td> <table class="style9"> <tr> <td class="style10">UID </td> <td class="style10">First Name</td> <td class="style10">Last Name</td> <td class="style10">Email</td> </tr> <? mysql_connect("**","***","***");//database connection mysql_select_db("***"); $order = "SELECT * FROM users ORDER BY UID"; $result = mysql_query($order); while($data = mysql_fetch_row($result)){ echo("<tr><td>$data[0]</td><td>$data[6]</td><td>$data[7]</td><td>$data[1]</td></tr>"); } ?> </table> </td> </tr> </table> Oh, and the Column lines arent displaying at all... Link to comment https://forums.phpfreaks.com/topic/123154-real-simple-question/ Share on other sites More sharing options...
cooldude832 Posted September 7, 2008 Share Posted September 7, 2008 PHP has no native styling controls you need to add css/xhtml to your output to control its styling you can add it in your echo statements but PHP can't "style" font in xhtml naturlaly Link to comment https://forums.phpfreaks.com/topic/123154-real-simple-question/#findComment-636040 Share on other sites More sharing options...
ChompGator Posted September 7, 2008 Author Share Posted September 7, 2008 hmm, ok so let me give it a shot and Ill re-post if I have any trouble... Thanks for the advice! Link to comment https://forums.phpfreaks.com/topic/123154-real-simple-question/#findComment-636043 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.