Jump to content

How to change text color in contact form field?

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://www.nickwaldinger.com/

Hello,

I'm trying to change the color of text entered in a contact form field. Screenshot 1 shows how it looks when I highlight the box and enter text. Screenshot 2 shows how it looks when I click off the box. I'd like the text entered to be white, and I'd like the box not to become white when highlighted. So it would be a black background with white text at all times.

My website is www.nickwaldinger.com, and the password is "create".

Could anyone help me with this?

1.png

2.png

Link to comment
  • Replies 10
  • Views 2.8k
  • Created
  • Last Reply

Top Posters In This Topic

On 5/2/2022 at 9:42 PM, nwaldinger said:

@tuanphan Your code worked for the first two fields, but the last three are still the same (see screenshots attached, I've included one when I'm typing the text in and one when I click away). Do you have any idea how to fix this?

The first two fields are perfect though!

Screen Shot 2022-05-02 at 9.40.18 AM.png

Screen Shot 2022-05-02 at 9.40.22 AM.png

It looks like you solved for all fields?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 4 weeks later...
On 5/27/2022 at 12:32 PM, Ellllla said:

Hi! Can you tell me how you solved this please? I'm having the same issue and I can't figure it out.

 

Thanks!

If you share link to page where you use contact form, we can help easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
On 6/6/2022 at 10:50 AM, Elke-AW said:

Hello! I am also trying to do a similar thing, making the boxes on these contact forms transparent. I had it working on one page and now it isn't 😞

https://www.elsewherebar.com/contact-1

https://www.elsewherebar.com/lost-items

 

The form looks fine to me. Can you describe in more detail?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 year later...

Hello, 

I am having a similar issue. The background of my website is black and I've just realised the text in the contact form fields is black so you can't see the text when typing. Please can anyone help me turn the text to white?

Thanks in advance!

 

Screenshot 2024-01-11 at 17.10.17.png

Edited by mariazoejackson
Link to comment
15 hours ago, mariazoejackson said:

Hello, 

I am having a similar issue. The background of my website is black and I've just realised the text in the contact form fields is black so you can't see the text when typing. Please can anyone help me turn the text to white?

Thanks in advance!

 

Screenshot 2024-01-11 at 17.10.17.png

You can use this code to Website Tools > Custom CSS. If it doesn't work, please share page url, we can check easier

div.form-block {
	input, textarea, input::placeholder, textarea::placeholder {
	color: white !important;
}}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.