Jump to content

Css for newsletter - filling in text turns to black

Recommended Posts

Posted

Site URL: https://www.para-para.world/

Hello from the Uk!

 

I have created a newsletter capture form on my website. I've managed to get the font to be white but when you fill it out it turns back to black and you can't see what you're typing. Also a big white outline appears around the field when you click on it.

Can anyone help me fix this? Also is it possible to align the placeholder" first, last, email" to the left?

I've attached some screenshots.

My custom CSS is: 

 

.newsletter-block .field-element::placeholder {
  color: white;
}

/*** NEWSLETTER FORM FIELDS ***/ 

.newsletter-form-field-element { 

background: none !important;

border-top: none !important;

border-left: none !important;

border-right: none !important;

border-bottom: solid 2px white     !important; 


}

 

Many thanks!! 

George

 

Screenshot 2021-11-24 at 11.15.03.png

Screenshot 2021-11-24 at 11.15.17.png

  • Replies 4
  • Views 356
  • Created
  • Last Reply
Posted
1 hour ago, GeorgeW25 said:

Site URL: https://www.para-para.world/

Hello from the Uk!

 

I have created a newsletter capture form on my website. I've managed to get the font to be white but when you fill it out it turns back to black and you can't see what you're typing. Also a big white outline appears around the field when you click on it.

Can anyone help me fix this? Also is it possible to align the placeholder" first, last, email" to the left?

I've attached some screenshots.

My custom CSS is: 

 

.newsletter-block .field-element::placeholder {
  color: white;
}

/*** NEWSLETTER FORM FIELDS ***/ 

.newsletter-form-field-element { 

background: none !important;

border-top: none !important;

border-left: none !important;

border-right: none !important;

border-bottom: solid 2px white     !important; 


}

 

Many thanks!! 

George

 

Screenshot 2021-11-24 at 11.15.03.png

Screenshot 2021-11-24 at 11.15.17.png

Hi @GeorgeW25,

You can try adding to Home > Design > Custom Css

.newsletter-form-field-element:focus {
  outline: none;
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
2 hours ago, GeorgeW25 said:

@bangank36 amazing thanks so much. Do you know how to change the font color for when people write in their email. At the moment as soon as they type the font turns to black. 

Many thanks,

George

With the color of text, you can try add the following one

.newsletter-form-field-element {
  /*style color when input data*/
  color: orange !important;
}

.newsletter-form-field-element::placeholder {
  /*style color for placeholder if you need to change*/
  color: #fff !important;
}

Hope it can help you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.