:: Forum >>
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
Tuesday, June 21, 2005
put it inside a positioned / sized DIV tag.
Steve N
Tuesday, June 21, 2005
<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
Wednesday, June 22, 2005
This topic is archived.
Back to support forum
Forum search