Here's my form and section code:
<section class="loginform tmr">
<form name="login" action="index_submit" method="get" accept-charset="utf-8">
<ul>
<li><label for="usermail">Email</label>
<input type="email" name="usermail" placeholder="yourname@email.com" required>
</li>
<li><label for="password">Password</label>
<input type="password" name="password" placeholder="password" required>
</li>
<li><input type="submit" value="Login"></li>
</ul>
</form>
</section>
Perhaps I am just doing it wrong but I have tried margin: 0 auto
and also display: inline-block
.
I do not want to use position: relative
because I fear it will be all over the place on different monitors.
Any help for the most sound and efficient way to accomplish this rather simple task would be great. Thanks in advance.