-1
I’m trying to align the box in the center of the screen, but it looks like it’s lining up wrong even if I put 50% of top
and 50% of left
.
css
#conteudo{
position:fixed;
top:50%;
left:50%;
border:2px #ccc solid;
width:350px;
height:auto;
}
#conteudo table tr td input[type=text],
#conteudo table tr td input[type=password]
{
width:100%;
}
#conteudo table tr td {
text-align:right;
}
html
<div id="conteudo">
<table border='0' width='100%' cellspacing='20'>
<tr>
<td><input type='text' name='email' placeholder='Digite o email'></td>
</tr>
<tr>
<td><input type='password' name='senha' placeholder='Digite a senha'></td>
</tr>
<tr>
<td><input type='submit' name='entrar' value="Entrar"></td>
</tr>
</table>
</div>