Applying CSS to created div

I have thefollowing jqxgrid. So when I click on any of the cell below the Link column, a new grid is generated. I am planning to put some gap between the original grid and the newly created grid, hence I did the following :

Added elem.id = 'commonWindow'; on line 55.

And added elem.style.padding = "50px 10px 20px 30px"; on line 65.

The styling got added for the grid. The outer box is still attached with the original grid. I am looking to add a space between the original grid and newly created grid. Where do I need to add the styling?

Thanks

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.