Jump to content

Font within a table changes?


plznty

Recommended Posts

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

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

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.