How do you apply and image background in a DIV and at the same time put a text exactly in the center of this div?
What I tried to do so far was this:
<div ID="PrimeiraImagem">Aprenda Inglês Online</div>
In CSS it´s like this:
#PrimeiraImagem{
height: 300px;
width: 100%;
background-image: url(BG/LucasCassimiroSenaColombo.jpg);
background-size: 1350px 300px;
background-attachment: scroll;
margin-left: -8px;
margin-top: -21px;
color: white;
font-family: Helvetica;
font-size: 15px;
position: 50% 50% 50%;
}
I want the text to appear in front of the image, that´s why I put it as background.