3
I’m trying to create a header with information to the right, a logo in the center and information to the left, but what I did is not even close to what I need, I did some tests with some lines I found in the OS but it was very badly formatted by me.
My version of Bootstrap
that’s the one: Bootstrap v3.3.4
I know semantically it’s not cool to use tables, but even that I tried, what I’ve done so far is this:
.flex-parent {
display: -webkit-flex;
display: flex;
width: 80%;
height: 80%;
}
.col {
-webkit-flex-direction: column; /* Safari 6.1+ */
flex-direction: column;
}
.flex-child {
width: 100%;
height: 100%;
}
<!-- TOP INFO -->
<div class="top_info">
<!-- CONTAINER -->
<div class="container">
<div class="row">
<div class="col-sm-3">
<div class="flex-parent col">
<div class="flex-parent">
<div class="flex-parent">
<div class="flex-child" align="center"><img src="https://rendamaislingerie.com.br/_imagens/user.fw.png" width="32" height="32" alt=""/></div>
</div>
<div class="flex-parent col">
<div class="flex-child"><a href="minha-conta-login.php">Faça login</a></div>
<div class="flex-child"><a href="cadastro-cliente.php">ou Cadastre-se</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6" align="center"><a href="index.php"><img src="_imagens/logo-rendamais.jpg" width="314" height="100" alt=""/></a></div>
<div class="col-sm-3">
<div class="container">
<div class="row">
<div class="col-sm-1" align="hight">ÍCONE</div>
<div class="col-sm-3" align="left">FACEBOOK</div>
</div>
<div class="row">
<div class="col-sm-1" align="left">ICONE</div>
<div class="col-sm-3" align="left">INSTAGRAN</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- TOP INFO -->
The result of this can be seen online here: Developing page
I would use grid in conjunction with flexbox, has some limitation as to the compatibility of browsers? - grid / flex.
– Renan Gomes
Hi @Renan, I don’t have one.
– adventistapr
Which version of Bootstrap you are using?
– hugocsl
Hello @hugocsl, my version is Bootstrap v3.3.4.
– adventistapr