[SOLVED] Center a grid on page

Please can you tell me what style command I must use to horizontally center a grid on a page. Currently it always align to the left.



You can apply necessary styles to the grid container. By default dhtmlxGrid doesn’t have code which aligns grid container at the left.

Thanks Olga, I worked it out. You need to put in the container the following styles:

margin-left:auto; margin-right:auto

Then it will align in center.