[SOLVED] Watermark in textbox

Answered
0
0

Ciao,

Is it possible change the forecolor and font of the Watermark in textbox?

Thanks

 

Attachment
  • You must to post comments
Best Answer
0
0

Ciao Messere,

 

Yes both things are possible!

For the placeholder color you can change the “text-placeholder” color in the theme (see attachment).

 

For the font, you’ll need to add a little bit of CSS to your theme or project, you can either add it in the Stylesheet rules of the Theme or in your default.html document:

<style>
 input::-webkit-input-placeholder {
 font-family: 'Brush Script MT', cursive;
 }

 input:-ms-input-placeholder {
 font-family: 'Brush Script MT', cursive;
 }

 input:-moz-placeholder {
 font-family: 'Brush Script MT', cursive;
 }

 input::-moz-placeholder {
 font-family: 'Brush Script MT', cursive;
 }
 </style>

The different entries correspond to different compatibility for each browser.

These can also be achieved via a mixin to your project.

Please let me know if this isn’t clear or you have more questions!

 

Best regards,

Levie

  • You must to post comments
0
0

Thank you very much! It works!

  • You must to post comments
0
0

 

I attached the mixin file you can use if you need it!

Best,

Levie

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.