Jump to content


Photo
- - - - -

TextBox background customization


Best Answer ffornaro , 27 May 2014 - 09:06 AM

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.

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 ffornaro

ffornaro

    Member

  • Members
  • PipPip
  • 26 posts

Posted 27 May 2014 - 06:53 AM

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, 27 May 2014 - 06:55 AM.


#2 GetMeWebDesign

GetMeWebDesign

    Advocate

  • Members

  • 524 posts
  • LocationSurrey, UK
  • Framework Version:developer
  • Country: Country Flag

Posted 27 May 2014 - 08:15 AM

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;


  • batman likes this

#3 ffornaro

ffornaro

    Member

  • Members
  • PipPip
  • 26 posts

Posted 27 May 2014 - 09:06 AM   Best Answer

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.



#4 GetMeWebDesign

GetMeWebDesign

    Advocate

  • Members

  • 524 posts
  • LocationSurrey, UK
  • Framework Version:developer
  • Country: Country Flag

Posted 27 May 2014 - 09:34 AM

No problem



#5 Danny

Danny

    Is Awesome!

  • Moderators
  • 15848 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 27 May 2014 - 09:56 AM

Thanks for informing us the issue has been resolved.


  • ffornaro likes this