Simple Layout - changing background color of text entry box | XM Community
Skip to main content
Solved

Simple Layout - changing background color of text entry box

  • March 26, 2024
  • 2 replies
  • 301 views

kbrad
Level 2 ●●
Forum|alt.badge.img+4
  • Level 2 ●●
  • 2 replies

I searched and could not find anything specific to the Simple Layout for this question. My question is: how can I change the background color of the text entry box? I am looking to change it to pure white from the current gray color. I inspected the page and am having trouble finding the exact syntax for this change. Any help would be greatly appreciated!

Best answer by Sachin Nandikol

Hello @kbrad,

Below is the code you can use to set the background color of a text box to white:

input[type=password], input[type=text], textarea {
    -webkit-appearance: none;
    background: #ffffff !important;
}

 

Please add this code in the 'Custom CSS' section under 'Look & Feel' > 'Style'. You can refer to the screenshot below for guidance:

 

Let me know if this helps.

2 replies

Sachin Nandikol
QPN Level 6 ●●●●●●
Forum|alt.badge.img+44
  • QPN Level 6 ●●●●●●
  • 530 replies
  • Answer
  • March 26, 2024

Hello @kbrad,

Below is the code you can use to set the background color of a text box to white:

input[type=password], input[type=text], textarea {
    -webkit-appearance: none;
    background: #ffffff !important;
}

 

Please add this code in the 'Custom CSS' section under 'Look & Feel' > 'Style'. You can refer to the screenshot below for guidance:

 

Let me know if this helps.


kbrad
Level 2 ●●
Forum|alt.badge.img+4
  • Author
  • Level 2 ●●
  • 2 replies
  • March 27, 2024

Thank you, @Sachin Nandikol. It worked perfectly.