Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tables in SSI on left side, Dynamic data in HTML on right side?

Status
Not open for further replies.

dtqui

Programmer
Sep 25, 2000
62
SG
Hi,
I understand that SSI can be used to create templates for HTML pages to allow easy maintenance.

If I have a banner at the top of the page, a menu table that is 20% wide on the left hand side and I want to put them in a SSI, how do I insert the data on the right hand side at the same level as the menu table? The data will exist in the html page itself.

Or any suggestions to achieve the same results is appreciated. NOTE: Must use SSI somewhere.
Code:
 --------------------
|      banner        |
|--------------------|
| menu |  data       |
| tbl  |  data       |
|      |             |
 --------------------
Thanks.
 
Hi there,

I would create a table, with 2 rows. Something like:
<table width=&quot;100%&quot; cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; border=&quot;0&quot;>
<tr><td colspan=&quot;2&quot;><!--#include file=&quot;header.inc&quot; --></td></tr>
<tr><td valign=&quot;top&quot;><!--#include file=&quot;menu.inc&quot; --></td><td>data data data...</td></tr>
</table>

Like this, the 2 reusable components will be included, one at the top of the data, the other on the left.

Of course, the page should be saved as shtml.

I hope this helps a bit.

Cheers,

xso

Cheers,


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top