4
I am trying unsuccessfully to put an image (Facebook icon) in front of a form newsletter:
I tried to adjust the size, but was unsuccessful due to my poor CSS knowledge, I tried to narrow down the field of form
and even the position of the button.
This is the html of form
:
<div id="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 from 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 form of newsletter is inside a 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;
}
in front? replace?
– Matheus Cristian
I just need to put the facebook image in front of the button "send" form @Matheus Cristian
– adventistapr
see if the answer below meets you....
– Matheus Cristian
Hello @Matheus Cristian, the image has now gone to the right but still below the form, thanks for having responded.
– adventistapr
of what size is the form? if possible try to increase it
– Matheus Cristian
These responses saying to "put inside the
form
"... I don’t agree it’s the best way for obvious reasons: The image is not part of the form.– Renan Gomes