Change background color for HTML field

ceraulo
Mega Guru

Hello!

 

I have a custom table which contains an HTML field. 

When the field is editable, the field looks like this:

ceraulo_0-1695279065359.png

 

When the field is set to read-only it looks like this:

ceraulo_1-1695279137380.png

Is it possible to set the background to gray similar to a text field as seen below:

ceraulo_2-1695279332722.png

 

Thank you.

10 REPLIES 10

_gaurav_S
Tera Expert

Hi @ceraulo,
If you want to change the background color of the HTML Type field, write styling in the Source code of HTML Field.
<style>
body{
background-color: #f6f6f8;
}
</style>

This works, but only for a particular record. How to change the background color of the HTML Type field to all the records and not to a particular one

AdityaG20790365
Tera Contributor

This works but only for that particular record. But what to do to change the background color of the HTML Type field, in every record and not on any particular record.

Jithin1
Tera Contributor

Were you able to get any solution for this?