I'm trying to unsuccessfully put an image (Facebook icon) in front of a newsletter form:
Itriedtosize,butIwasnotsuccessfulbecauseofmylackofknowledgeinCSS,Itriedtodecreasethefieldofform
andeventhepositionofthebutton.
Thisisthehtmlofform
:
<divid="newsletter-wrap">
<form action="newsletter.php" method="post" class="content-form clearfix" id="newsletter-form">
<input type="submit" class="button" name="button" id="button" value="Enviar" />
<input id="newsletter" type="email" name="newsletter" placeholder="Fique por dentro de nossas ofertas">
</form>
<img src="imagens/icone-facebook.png" width="29" height="29">
<p class="status"></p>
<br>
</div>
I have this CSS of form
:
#newsletter-wrap {
padding-top: 1px;
/*border-top: 1px solid #e5e5e5;*/
}
#newsletter-form input#newsletter {
float: left;
width: 360px;
margin-right: 10px;
}
#newsletter-form input.button {
float: right;
margin-right: 0;
margin-bottom: 5px;
}
#newsletter-wrap .tip {
margin-top: 7px;
}
The newsletter form is within div
:
<div class="one-half column-last">O formulário está aqui</div>
.one-half {
width: 80%;
max-width: 460px;
}
.column-last {
margin-right: 0 !important;
}