Professional > Interview scripting > Writing interview scripts > Page layout facilities > Styles > Grids > Space around the cell content
 
Space around the cell content
With no formatting, the size of each cell is usually determined by the width of the column heading and the height of the row text, and the cell content is centered within the cell. Since these texts are generally larger than the check boxes or radio buttons the cells contain, there is usually space around those boxes or buttons. If you have a three-dimensional grid, the cell width may be increased to display a drop-down list and there will be less space around the cell contents.
To set the amount of space around cell contents, type:
Gridname[GridCategory].Qname.Categories[Category].Style.Cell.Padding = number
where:
Gridname is the name of the grid.
GridCategory is the name of a category for which Qname is repeated (that is, one of the categories named at the start of the grid definition). If the setting applies to all categories, use [..].
Qname is the name of the repeated question.
Category is the name of a response in Qname’s response list. Use [..] to refer to all responses.
number is the number of pixels padding each cell is to have.
If you want to specify the padding in a particular direction only, use the same statement but replace Padding with PaddingTop, PaddingBottom, PaddingLeft, or PaddingRight. If you specify global and direction-specific padding the direction-specific setting overrides the global setting, but the global setting still applies where no direction-specific setting exists.
Grid with no styles set
Here is the grid with no padding defined, which means that the space around the check boxes comes solely from the column and row texts:
Grid with 10 pixels' padding
And here it is with ten pixels' padding:
Although padding increases the cell dimensions, it is better to set the row height and column width using properties designed for that purpose. Set cell padding when you want to increase the amount of space between the cell contents and the cell borders.
See also
Grids