Looking to create a login view for a webpage with two forms (one for registration and one for login) aligned side by side. Initially attempted using a table, then tried using bootstrap form groups (rows and cols) without success. Finally, aligned them in the same line using the float attribute but was not satisfied with the result.
<!-- EXAMPLE OF HTML CODE -->
<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:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="80f0e5e4e9e4eff3c0f6e9eee9eceff3aef0e5">[email protected]</a>"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c4b4a1a0ada0abb784b2adaaa8ab94c3a1a7">[email protected]</a></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>
/* STYLING IN 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;
}
While aiming for a design similar to this mockup, encountered footer alignment issues resulting in a layout like this.