I have a div with an image in background
and a input
of type text.
I need the input to be in a certain position and as the resolution changes, it goes down so as not to cover the "Connect to focus" heading.
I'm using Bootstrap (if needed):
ThisiswhatIhave,buttheinputgetsaftertheimageatlowerresolutions.Howtolimitdiv,preventingthis?
<divclass="conecte-se">
<div class="caixa-email">
<input type="text" name="email" placeholder="Digite seu e-mail..." class="input-email"/>
</div>
</div>
CSS:
.conecte-se{
width: 100%;
background: url('../images/conect-foco.jpg');
height: 493px;
margin-top: 100px;
background-repeat:no-repeat;
background-size:contain;
background-position:center;
}
.caixa-email{
margin: 0 auto;
text-align: center;
padding-top: 348px;
}
.input-email{
width: 52%;
height: 45px;
}