You are viewing limited content. For full access, please sign in.

Question

Question

Forms CSS Table Column Background Colour

asked on October 22, 2018

Hi all,

 

I have a form with a table and would like to change the background colour of some of the columns within the table. 

I'm just not sure of the CSS to be able to do this.

 

Any feedback / examples anyone can provide will be greatly appreciated!

 

Thanks in advance,

Tim

0 0

Answer

SELECTED ANSWER
replied on October 22, 2018

You could try this, where .bgcl (you can name it whatever you like, I just chose bgcl) is the class that you'd set in the advanced tab for the column you'd want to color.

.bgcl div:nth-child(2) {
    background-color: red;
}  

I set it for the second column in the first table, and the first column in the third table.

Thanks,

Michael

 

3 0

Replies

replied on October 22, 2018

Hi Michael - thanks you so much. That worked great!

 

Kind regards,

Tim

1 0
replied on October 22, 2018

Hi Tim,

 

   You're quite welcome. I'm happy to have helped.

 

Thanks,

Michael

0 0
replied on January 17, 2022

Is there a way to have the background of the titles for each colored column to be filled in as well?

0 0
replied on January 17, 2022

Figured it out. I had to do each column title individually.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.