3.2.0

Need an example of a grid...

I need an example of a grid that takes up only half the page, and is centered. All the example show the grid using the entire width of the screen. Any help would be appreciated.
Open Source Developer
June 21,
put it inside a positioned / sized DIV tag.
Steve N
June 21,
<div style="position:absolute;top:25%;left:25%;height:50%;width:50%;border:1 solid red" id=myDIV></div>
<script>
obj = new Active.Controls.Grid;
... {your general setup code}
obj.setStyle("width","100%");
obj.setStyle("height", "100%");
document.getElementById("myDIV").innerHTML = obj;


This will give you a grid in the middle of the page. You can change the size of the DIV all you want and the grid will follow...
Jim Hunter
June 22,

This topic is archived.

See also:


Back to support forum