• 0

TextBox background customization

Question

Posted (edited) · Report post

Hi all,

 

I'd like to customize a TextBox with a dark background and a white text, which should be easy, but...

I tried in two ways: first, adding "background-color:#000000;" inside the TextBox Inline CSS Styling, but background was still white... so, I created a CSS class in DMS Less Fallback:

 

.my-black-area {
    background-color: #000000;
    font-color: white;
    font-size: 10px;
  }
 
then added "my-black-area" in TextBox Properties under Custom Styling Classes.
But the background is still white... 
 
Please note that I tried also creating .my-black-area class inside style.css of my child theme... same behaviour... :(
 
Could you please help me with this? Thank you so much.
Edited by ffornaro

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

Posted · Report post

Hi,

 

I don't use quote marks ad inline styling, but I found an issue in my custom style.css file and now the TextBox background works fine.

 

Thank you.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Are you adding inline or custom styling classes with "quote marks"? They are not needed. I cant not replicate your problem. Using both inline and a custom styling class worked as expected:

 

AS a styling class

my-black-area

 

As inline styling

background-color: #000000; color: white; font-size: 10px;

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

No problem

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for informing us the issue has been resolved.

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

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

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now