Jump to content

Changing form field text colour

Recommended Posts

  • Replies 5
  • Views 624
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 1 year later...
On 5/24/2021 at 11:04 AM, tuanphan said:

Add to Design > Custom CSS

/* form title color */
legend.title, .form-item {
    color: white;
}

 

How do I change the form field title and description text colour for an individual form? I'd got the block ID number and code to change the background of the form to white, but I don't know how to change the text colour so that it's visible

Code to change the form background to white (screenshot attached for reference)

#block-yui_3_17_2_1_1673009862760_11011 {
  background: rgb(255,255,255);
  padding: 20px;
}

URL: https://www.bon-creative.co.uk/content-audit (I've removed the code for now in case anyone views the page and can't read the form)

I'd like to change the form field title colour to black, and the descriptions to a dark grey colour.

Screenshot 2023-01-06 at 21.45.46.png

Link to comment
On 1/7/2023 at 4:48 AM, EllMorrow said:

How do I change the form field title and description text colour for an individual form? I'd got the block ID number and code to change the background of the form to white, but I don't know how to change the text colour so that it's visible

Code to change the form background to white (screenshot attached for reference)

#block-yui_3_17_2_1_1673009862760_11011 {
  background: rgb(255,255,255);
  padding: 20px;
}

URL: https://www.bon-creative.co.uk/content-audit (I've removed the code for now in case anyone views the page and can't read the form)

I'd like to change the form field title colour to black, and the descriptions to a dark grey colour.

Screenshot 2023-01-06 at 21.45.46.png

It looks fine to me

image.thumb.png.e41736e8fb81c0e728f42f4b51826f59.png

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.