Print Page | Close Window

Using tables instead of frames

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=1409
Printed Date: 29 March 2026 at 7:40pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Using tables instead of frames
Posted By: danp129
Subject: Using tables instead of frames
Date Posted: 27 March 2003 at 11:36am

Anyone know a good website that explains how to use tables instead of frames for web layout?  Also, is it possible to change an include file that is used in a table based on a session variable or request.querystring?




Replies:
Posted By: michael
Date Posted: 27 March 2003 at 1:20pm

1. I don't know of any tutorial that descrbes what you are looking for but there should be some on how to use tables, check some html sites like w3schools.com

2. You cannot do dynamic includes like that. Sure you can put them in if statements but no matter what, all code would be included even the ones not being used. Include's are not ASP, they are SSI and so get executed before any script block.



-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: Bunce
Date Posted: 27 March 2003 at 9:19pm

Originally posted by michael michael wrote:

Include's are not ASP, they are SSI and so get executed before any script block.

Try and tell Maddog that!



-------------
There have been many, many posts made throughout the world...
This was one of them.


Posted By: MadDog
Date Posted: 28 March 2003 at 12:35am
Originally posted by Bunce Bunce wrote:

Originally posted by michael michael wrote:

Include's are not ASP, they are SSI and so get executed before any script block.

Try and tell Maddog that!

What is that supposed to mean?



-------------
http://www.iportalx.net" rel="nofollow">


Posted By: Toast
Date Posted: 29 March 2003 at 7:26am

Tables are fairly easy there is an ok tutorial at http://www.spoono.com - www.spoono.com , but i will try to help

-----------------------

in the body section of your html code, you would put a tag <table>, this would make a table. To define the width and or hight of the table you would just make <table width="100%" height="100%"> so in there you would have a table that spans across the whole width, and heigth of the screen.

Under the Table tags, if you want multiple columnes, and rows, you always start with a row. So under the Table Tag, you would put
<tr> (row) the <tr> tag cannot be defined any further. It just creats a row as wide as the table. Under the tr tag, you would want to create a cell that fills up this row the tag for a cell is <td>. you can have one or multiple cells in a row. So your code should look like this

<table width="100%" height="100%">

   <tr>

        <td width="33%" height="30">This is the left cell</td>

        <td width="33%" height="30">This is the middle cell</td>

        <td width="34%" height="30"> This is the right cell</td>

 

This code would have a table with 3 almost equal cells across it filling up the whole screen. The Colspan, and Rowspan define how many rows or columes a cell can span across. For Example

<table width="100%" height="100%">

   <tr>

        <td width="33%" height="30">This is the left cell</td>

        <td width="33%" height="30">This is the middle cell</td>

        <td width="34%" height="30"> This is the right cell</td>

   </tr>

   <tr>

        <td colspan="3" bgcolor="ff0000" width="100%" height="50"><b>BIG CELL</b></td>

</tr>

</table>

This would make a 2 row table, on the top row, there would be 3 cells, and on the bottom row, there would be one big cell.

I hope this little tut helped out, if not, im sure somone else can help.

:.Toast.:



Posted By: Bunce
Date Posted: 29 March 2003 at 2:59pm
Originally posted by MadDog MadDog wrote:

Originally posted by Bunce Bunce wrote:

Originally posted by michael michael wrote:

Include's are not ASP, they are SSI and so get executed before any script block.

Try and tell Maddog that!

What is that supposed to mean?

Sorry, I wasn't very descriptive.

You have a tutorial on your site that recommends using conditional includes, which are pointless in ASP for the reason that Michael has listed.

I tried to explain it on your site but you didn't seem to like my post.

Cheers,
Andrew



-------------
There have been many, many posts made throughout the world...
This was one of them.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net