I have a form with the following HTML:
<div class="cont960 trabalheConosco">
<form>
<input type="text" placeholder="nome*" />
<input type="text" placeholder="e-mail*" />
<input type="text" placeholder="Telefone" />
</form>
</div>
The CSS:
.trabalheConosco input, div .trabalheConoscoAnexo {
width: 480px;
padding: 17px;
box-sizing: border-box;
display: block;
background-color: #e9e9e9;
margin-bottom: 8px;
font: 300 italic 18px/18px "Lato";
color: #898989!important;
}
Jquery:
function add() {if($(this).val() == ''){$(this).val($(this).attr('placeholder')).addClass('placeholder');}}
function remove() {if($(this).val() == $(this).attr('placeholder')){$(this).val('').removeClass('placeholder');}}
if (!('placeholder' in $('<input>')[0])) {
$('input[placeholder], textarea[placeholder]').blur(add).focus(remove).each(add);
$('form').submit(function(){$(this).find('input[placeholder], textarea[placeholder]').each(remove);});
}
What happens is that the word inside input
is not accepting correctly the font color that I reported, in case color: # 898989! important; . I would like to know if I have the color of the font for the placeholder that contains input
.
Something like this example:
.trabalheConosco input[placeholder] {
color: #898989;
}