:: Forum >>

2 grids side by side

Is there a way to get two grids on the same page side by side, instead of one on top of the other, without using iframes or absolute positioning?
Monday, April 4, 2005
Yes, please look in /examples/grid directory of the distribution package, the file is called 'two grids on one page.htm'
Alex (ActiveWidgets)
Monday, April 4, 2005

ehm...
"side by side", alex. :-)
on the example there are "one on top of the other".
i think a solution would be using a table.
something like:

<table>
<tr>
<td>
<script language="JavaScript">
<!--
    document.write(objGrid1);
//-->

</script>
</td>
<td>
<script language="JavaScript">
<!--
    document.write(objGrid2);
//-->

</script>
</td>
</tr>
</table>


but i don't have tried.

have a nice day.
mirko
Tuesday, April 5, 2005
Thanks, that does work but I was trying to do it without using tables for layout. It seems that there is a <br> (or something similar at the end of the table code) which prevents me from doing it.
Wednesday, April 6, 2005
You might be able to put each in a <div> tag, and then setting the style for each tag to have:

display: inline;
Chris Hoult
Thursday, April 7, 2005
You would think that would work but it doesn't seem to :(
Thursday, April 7, 2005
Div by default are "blocks" therefore they have implicit <BR>'s after them. So, as far as I know the best way to get the side by side grids would be to use the table suggestion above.
Frank Gualtieri
Tuesday, August 30, 2005
Don't use tables. Put the grids in DIV's, then set DIV's "position" style to "absolute" and then place the DIV's anywhere on the page you want. Basic CSS 101.
Jim Hunter
Tuesday, August 30, 2005

This topic is archived.


Back to support forum

Forum search