I'm trying to make the login view of a web page, this login view have two forms (one for register and another for login) and I want to align them and put them in the same line.
At first I've tried to use a table in order to achieve this, but this was unsuccessful, so I used some bootstrap form groups (rows and cols) but I was unsuccessful as well, in the end I managed to put them in the same line using the float attribute, but the result that I got it wasn't good enough.
<!-- THIS IS MY HTML -->
<header>
<a href="Index.html"><img src="rsc/logo.png" class="center"></a>
<div class="navbar1">
<a href="#inicio">Inicio</a>
<a href="#nuevasAdiciones">Nuevas Adiciones</a>
<div class="dropdown1">
<button class="dropbtn">Categoría
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown1-content">
<a href="#">Punk</a>
<a href="#">Rock</a>
<a href="#">Emo</a>
</div>
</div>
<div class="dropdown1">
<button class="dropbtn">Tipo de Material
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown1-content">
<a href="#">Vinilos</a>
<a href="#">Discos Compactos</a>
<a href="#">Casetes</a>
</div>
</div>
<div class="inlogin">
<a href="#login">Iniciar Sesión <i class="fa fa-sign-in"></i></a>
</div>
</div>
</header>
<form class="bord" style="float: left;">
<legend>Crear Cuenta</legend>
<div class="form-group">
<label for="formGroupExampleInput">Example label</label>
<input type="text" class="form-control" id="formGroupExampleInput" placeholder="Example input">
</div>
<div class="form-group">
<label for="formGroupExampleInput2">Another label</label>
<input type="text" class="form-control" id="formGroupExampleInput2" placeholder="Another input">
</div>
</form>
<form class="bord" style="float: right;">
<legend>Registrarse</legend>
<div class="form-group">
<label for="formGroupExampleInput">Example label</label>
<input type="text" class="form-control" id="formGroupExampleInput" placeholder="Example input">
</div>
<div class="form-group">
<label for="formGroupExampleInput2">Another label</label>
<input type="text" class="form-control" id="formGroupExampleInput2" placeholder="Another input">
</div>
</form>
<footer style="text-align: center;">
<p><strong>Contacto</strong></p>
<p>Email: <a href="mailto:pedidos@vinilos.pe">pedidos@vinilos.pe</a></p>
<p>Teléfono: 3291177</p>
<p><a href="https://www.facebook.com/vinilos.pe/" target="_blank"><i class="fa fa-facebook-square" style="font-size:40px;color: #3b5998;"></i></a></p>
<p>Vinilos.Pe © 2019 Derechos Reservados</p>
</footer>
/* THIS IS MY CSS */
.bord {
display: block;
margin-top: 15px;
padding-top: 0.35em;
padding-bottom: 0.625em;
padding-left: 0.75em;
padding-right: 0.75em;
border-style: solid;
border-width: 2.5px;
text-align: center;
}
I was trying to achieve the look of this mockup, but instead for some reason the footer comes up and it looks like this.