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>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.