Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tom Gregory on Nov 05, 2008 16:29
open dhtmlx forum
Small columns / Image cells

Dear Dhtmlx Support,

I was curious to know if its possible to eliminate the small spacing/indent before images/text appears in each cell or header. I would prefer images to appear without a small white space to the left of them. Also I have some very small columns where the header text would fit, but because of the small indent, the text gets cut off (unless of course you expand it).

I apologize if this is in the documentation ... I could not find it.

I very much appreciate your time and assistance,

Tom
Answer posted by Support on Nov 06, 2008 02:01
Most probably issue caused by the padding assigned to header cells.
You can fully remove such padding at dhtmlxgrid.css
div.gridbox table.hdr td {
 font-family:arial;
 font-size:12px;
 background-Color:#D4D0C8;
 border: 1px solid;
 border-color : white Gray Gray white;
 text-align: center;
 margin:0px;
 padding:5px 0px 5px 0px ; // <= here it is !!!

Or use 3rd parameter of setHeader command as 

grid.setHeader("small,others....",null,["padding:0px; margin:0px;"])