2
I need to assemble a layout with the following structure.
Where the blue part will be an image.
<header class="header-bg">
<div class="logo">
<span>Logo</span>
</div>
<nav class="menu">
<ul>
<li><a href="#sobre">Sobre</a></li>
<li><a href="#produtos">Produtos</a></li>
<li><a href="#contato">Contato</a></li>
</ul>
</nav>
<p> BLA BLA BLA </p>
The menu part I think I can use flexbox
, and put a space-between
to leave the logo
and the menu
each one in a corner, but I don’t know how to put a background image in it, which ends at the beginning of the site content (image or over) and I don’t know how to position the P
(BLA BLA BLA) in the middle, maybe using a margin: 0 auto
but I don’t know if it’s the best way.
background-image: url(caminho_da_imagem);
– Sam
Are you using some Bootstrap framework or are doing it all by hand?
– hugocsl
@hugocsl All in hand, but I can use BS without problems
– Guilherme Rigotti
@Sam Put the image I know, do not know how to do the way I said in the post
– Guilherme Rigotti
Okay young rs... is that in the question you are quite blunt to say that you do not know how to put a background image. : D
– Sam
I’ll make a template in hand, because for this you don’t need the BS, it’s also more fun at hand :D. But if your project is large sometimes a Framework can be interesting...
– hugocsl
@Sam Truth, I expressed myself badly. What I really meant was to put the background image even :D with the elements on top of it
– Guilherme Rigotti
@hugocsl Thanks friend, but if it looks better with a framework without problems too, I thought maybe the Bulma for the matter of being lighter, I find the BS too heavy.
– Guilherme Rigotti