How to style placeholders |
Post Reply |
Author | |
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6194 |
Post Options
Thanks(0)
Posted: Jul 09 2021 at 11:28am |
One more thing on this subject:
You can assign css to a specific spaceholder by using it's OE ID as name:
Edited by Hobby001 - Jul 09 2021 at 11:31am |
|
TC2020
Groupie Joined: Mar 26 2020 Location: Canada Status: Offline Points: 61 |
Post Options
Thanks(0)
|
I followed the link and added CSS code for color and font size, as below: input::placeholder { color: #e0e0e0; font-size: 10px; } The above works after a few attempts. I found for the change to take effect, the page must be saved. Somehow refreshing the page only did not work for me. Thanks for your help. |
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6194 |
Post Options
Thanks(0)
|
See also here
Edited by Hobby001 - Jul 08 2021 at 8:42pm |
|
Hobby001
Admin Group Joined: Jun 05 2018 Location: Canada, Québec Status: Offline Points: 6194 |
Post Options
Thanks(0)
|
Quick answer: add css to your page
Edited by Hobby001 - Jul 08 2021 at 1:08pm |
|
TC2020
Groupie Joined: Mar 26 2020 Location: Canada Status: Offline Points: 61 |
Post Options
Thanks(0)
|
Hi, I am using placeholders for syntax hints. How do I change placeholder properties, such as font, font size, font color?. At the moment, hints appear to have the same properties as defined by the text input field but only in lighter gray. They look 'busy' when there are many fields close together. Thank you.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |