×

Please give details of the problem

Skip to content

CSS Personalization

Ex : you use a widget array with 2 columns.
CSS class of the first header is array-column-header1 and 2nd is array-column-header2.
To put a red background on the 1st header and a yellow background on the second header, use the following script:

Code

document.getElementsByClassName('array-column-header1')[0].style.cssText = "background-color: red";  
document.getElementsByClassName('array-column-header2')[0].style.cssText = "background-color: yellow";