13

Is the any way to set different fonts for an input placeholder and value? I need to set diffrent fonts for my input placeholder and value because they use diffrent languages. The placeholder uses an right tonleft language but the vakue uses english. Is it possible in CSS3?

2
  • 1
    @j08691 I think there is a diferrence between font and color! But thanks it was useful
    – hamidfzm
    Commented Feb 1, 2014 at 23:00
  • 1
    It shows you how to style the placeholder attribute via CSS. What's the difference?
    – j08691
    Commented Feb 1, 2014 at 23:02

1 Answer 1

6

You can do this by targeting the placeholder text in css. Then setting color on the input to be something else

::-webkit-input-placeholder {
   color: red;
}

:-moz-placeholder { 
   color: red;  
}

::-moz-placeholder {  
   color: red;  
}

:-ms-input-placeholder {  
   color: red;  
}

JSFIDDLE

Not the answer you're looking for? Browse other questions tagged or ask your own question.