29
Views
3
Comments
Edit Prompt text color
Application Type
Traditional Web

Hello,

I would like to know how I could edit the color of the input prompt. 

I intended to put the asterisk in red.


OutSystems 11

Thanks

Hello,

Perhaps this article will help. Although if you want just the asterisk you might have to do some Javascript coding.

https://www.w3schools.com/howto/howto_css_placeholder.asp


Hello Henrique,

You can use the placeholder pseudoclass to change the color of the placeholder text in most modern browsers, but I don't think there's an easy way to change only a part of the text.

The available solutions to solve this look a little clunky to me, so I'd consider if this is something that you must really have in your application - the associated effort to design and maintain something like this for every input in your page is something that should be considered.

Hi @Henrique Querido,

Try this below format to change the placeholder (prompt) color

.ClassName::placeholder
{
    color: #000000;
}

Replace the classname  and the color code with your respective values.

Hope it helps,
Nandhakumar S. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.