setHeader style align

Hi,

I’m using “mygrid.setHeader(“A,B,C”,null,[“text-align:center;”,“text-align:center;”,“text-align:center”]);” , and the header text is aligned center , but if i want the text inside the header to be in 2 lines (not in one) , the text is not centered any more ,
(in order to make it 2 lines , i’m reducing from the cell’s size so it would be to small for the text , and it will split it into 2 lines).

so how can i center the text in this case? f not , how can i split the text to 2 lines and still stay centered?

Thanks.

You should use 2nd parameter of attachHeader() method
docs.dhtmlx.com/doku.php?id=dhtm … tachheader