Jump to content

Can't change contact form block background and border with custom css !!

Go to solution Solved by Web_Solutions,

Recommended Posts

Hi!

I applied the following code but the form block stayed the same and I can't change the background color with any code, please help what do I do !!

.sqs-block-form .field-list .field input, 
.field textarea { 
border: 1px solid #eee;
border-radius: 5px;
background: #e5f5f6;
}
Link to comment
3 hours ago, selouwee said:

Hi!

I applied the following code but the form block stayed the same and I can't change the background color with any code, please help what do I do !!

.sqs-block-form .field-list .field input, 
.field textarea { 
border: 1px solid #eee;
border-radius: 5px;
background: #e5f5f6;
}

 

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.sqs-block-form .field-list .field input, .sqs-block-form .field-list .field.textarea textarea { 
  border: 1px solid #eee !important;
  border-radius: 5px !important;
  background: #e5f5f6 !important;
}

 

Edited by Web_Solutions

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
37 minutes ago, Web_Solutions said:

 

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.sqs-block-form .field-list .field input, .sqs-block-form .field-list .field .field textarea { 
  border: 1px solid #eee !important;
  border-radius: 5px !important;
  background: #e5f5f6 !important;
}

 

Thank you so so much for this, this mostly worked but the comments field didn't change! I'm attaching an image - Also another question, on the image I attached, when a form field is selected there's a black border around it. How do I change that color as well? Thanks again!!Screenshot2023-10-22at1_06_24PM.thumb.png.43d1cc4ad09f84b6b89571be73d626e0.png

Link to comment
1 minute ago, selouwee said:

Thank you so so much for this, this mostly worked but the comments field didn't change! I'm attaching an image - Also another question, on the image I attached, when a form field is selected there's a black border around it. How do I change that color as well? Thanks again!!Screenshot2023-10-22at1_06_24PM.thumb.png.43d1cc4ad09f84b6b89571be73d626e0.png

Can you share the page URL? It will be easier to check.

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
3 minutes ago, selouwee said:

I unfortunately can't share that!!! Did you see the image? 

I have update the code. Can you try the code now?

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
  • Solution
5 minutes ago, selouwee said:

Whats the new code?!

I have update the code that I sent previous. Also here is the code

.sqs-block-form .field-list .field input, .sqs-block-form .field-list .field.textarea textarea { 
  border: 1px solid #eee !important;
  border-radius: 5px !important;
  background: #e5f5f6 !important;
}

 

Screenshot_292.png

Edited by Web_Solutions

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
2 minutes ago, Web_Solutions said:

I have update the code that I set previous. Also here is the code

.sqs-block-form .field-list .field input, .sqs-block-form .field-list .field.textarea textarea { 
  border: 1px solid #eee !important;
  border-radius: 5px !important;
  background: #e5f5f6 !important;
}

 

Screenshot_292.png

This worked!! Thank you!! Just one thing - how can I change the border color when a field is selected? I don't want it to be black. Attaching imageScreenshot2023-10-22at1_33_32PM.thumb.png.1ffab8f25c760afca4294737c1a19115.png

Link to comment
Just now, selouwee said:

This worked!! Thank you!! Just one thing - how can I change the border color when a field is selected? I don't want it to be black. Attaching imageScreenshot2023-10-22at1_33_32PM.thumb.png.1ffab8f25c760afca4294737c1a19115.png

Yes

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
3 minutes ago, selouwee said:

This worked!! Thank you!! Just one thing - how can I change the border color when a field is selected? I don't want it to be black. Attaching imageScreenshot2023-10-22at1_33_32PM.thumb.png.1ffab8f25c760afca4294737c1a19115.png

Here is the code. You can change the color green to as you want.

.sqs-block-form .field-list .field input.focus-visible, .sqs-block-form .field-list .field textarea.focus-visible {
  border-color: green !important;
  outline: none !important;
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

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.