3
I have a div with an image in background
and with a input
text-type.
I need the input to stay in a certain position and as the resolution change, it goes down so as not to cover the title "Connect with the focus".
I’m using Bootstrap(in case you need):
This is what I have, but the input is after the image in smaller resolutions. How to limit the div, preventing this?
<div class="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;
}
Ta supporting IE < 9?
– Renan Gomes
No need, @Renan, but can help with any hint?
– Lollipop