plznty Posted May 25, 2009 Share Posted May 25, 2009 The font is not applying itself to the text withing tables. How do I apply them to tables. Quote Link to comment https://forums.phpfreaks.com/topic/159519-font-within-a-table-changes/ Share on other sites More sharing options...
Maq Posted May 25, 2009 Share Posted May 25, 2009 Can you post the pertinent code? Quote Link to comment https://forums.phpfreaks.com/topic/159519-font-within-a-table-changes/#findComment-841449 Share on other sites More sharing options...
plznty Posted May 25, 2009 Author Share Posted May 25, 2009 <font face="verdana" color="#D2D2D2"> shit <style type="text/css"> Body { Background: transparent; } </style> <center> <form action=validate.php method=post> <table border="0"> <tr> <td colspan="2" align="center"> <b>Login</b> </tr> <tr> <td>Username:</td> <td><input type=text name=user size=15 maxlength=12></td> </tr> <tr> <td>Password:</td> <td><input type=password name=pass size=15 maxlength=20></td> </tr> <tr> <td>User Type:</td> <td><select name='type'><option value='user'>User</option><option value='admin'>Admin</option></select></td> </tr> <tr> <td colspan="2" align="center"> <b><input type=submit value=Login></b> </tr> </table> Quote Link to comment https://forums.phpfreaks.com/topic/159519-font-within-a-table-changes/#findComment-841450 Share on other sites More sharing options...
Axeia Posted May 25, 2009 Share Posted May 25, 2009 Font tag has been deprecated, as has the center tag. That doesn't mean they don't work, but you should not use them. Secondly did you actually have your tag starting with a capitalized B? Otherwise it wont do anything as CSS is case sensitive. (Not that I particularly see the use of a transparent body). Thirdly although I didn't look it up I'm quite sure that a table shouldn't be nested within a font tag, although I'm not sure as I never ever use font tags (them being depecrated and all) Try the following table start tag instead <table border="0" style="font-family: Verdana, sans-seriff"> Quote Link to comment https://forums.phpfreaks.com/topic/159519-font-within-a-table-changes/#findComment-841571 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.