I want to the table goes vertically down
I tried using verticle-align:middle
and still dont get the job done
Expected:(Editted using paint)
register.html
<div class='center'>
<form method='post' autocomplete="off">
<table>
<tr>
<td width='200px'>Username</td>
<td><input id='rounded' type='text' name='user'></td>
</tr>
<tr>
<td>Passwords</td>
<td><input id='rounded' type='password' name='pass'></td>
</tr>
<tr>
<td>Name</td>
<td><input id='rounded' type='text' name='name'></td>
</tr>
<tr>
<td>Email</td>
<td><input id='rounded' type='text' name='email'></td>
</tr>
<tr>
<td>No. Telephone</td>
<td><input id='rounded' type='text' name='tel'></td>
</tr>
</table><br>
<input id='button' type='submit' value='enter' formmethod='post' >
</form>
</div>
register.css
.center{
text-align: center;
}
form{
margin-left:auto;
margin-right:auto;
width: 500px;
height: 600px;
background-color: white;
border-radius: 40px;
}
table{
vertical-align: middle;
font-size: 25px;
margin-left:auto;
margin-right:auto;
}
My Approah is to use empty row of table
, but im sure css
gotta be good than that