Jump to content
  • 0

Change Background Color of Text Area


RonAnderson

Question

Hi, I can successfully change the colour of a Text Field with:- 

input#InsertRecordText_Field {background: #ffff99;}

If I apply the same code (input#InsertRecordText_Area {background: #ffff99;} to a text Area, it doesn't work. Does anyone know of a workaround?

I can achieve changing a Text Area background in Styles but this changes ALL of the Text Area boxes and I only want one to have the different background colour

Thanks, Ron

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

Hi @RonAnderson,

Just to add, after the #InsertRecord you can add the field name from the table, like this #InsertRecordFIELDNAME

<style>
#InsertRecordTextArea1 
  {
  background-color: red!important;
  }
</style>

 

The !important rule in CSS is used to add more importance to a property/value than normal, basically, the system prioritizes this CSS.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...