Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 cleaned up nested table
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aznknight
Senior Member

USA
1373 Posts

Posted - 29 August 2000 :  02:17:13  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
Nested tables can slow down your site. This is especially true when the client is using Netscape since the page is not rendered until the whole table is completed.

I saw this big nested table in inc_footer.asp,

<pre id=code><font face=courier size=2 id=code>
<table border=0 width="95%" cellspacing=0 cellpadding=0 align=center>
<tr>
<td>
<table width=100% border=0 bgcolor="<% =strForumCellColor %>">
<tr bgcolor="<% =strForumCellColor %>">
<td bgcolor="<% =strForumCellColor %>">
<table border=0 width="100%">
<tr>
<td bgcolor="<% =strForumCellColor %>" align=left valign=top nowrap><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
<% =strForumTitle %>
</font></td>
<td bgcolor="<% =strForumCellColor %>" align=right valign=top nowrap><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
<% =strCopyright %>
</font></td>
</tr>
</table>
<td bgcolor="<% =strForumCellColor %>" width=10 nowrap><a href="#top"><img src="icon_go_up.gif" height=15 width=15 border="0" align="right" alt="Go To Top Of Page"></a></font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border=0>
<tr>
<td align="right"><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
<a href="http://forum.snitz.com"><% if strShowImagePoweredBy = "1" then %><acronym title="Powered By: <% =strVersion %>"><img src="logo_powered_by.gif" border=0></acronym><%else%>Snitz Forums 2000 <%end if%></a>
</font></td>
</tr>
</table>
</td>
</tr>
</table>
</font id=code></pre id=code>

That's 4 tables with 3 of them being nested!

Here's an optimized version that does pretty much the same thing but in just one table <img src=icon_smile.gif border=0 align=middle>.

<pre id=code><font face=courier size=2 id=code>
<table width="95%" border="0" cellspacing="0" cellpadding="3" align="center">
<tr bgcolor="<% =strForumCellColor %>">
<td bgcolor="<% =strForumCellColor %>" align="left" valign="top" nowrap><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
<% =strForumTitle %>
</font></td>
<td bgcolor="<% =strForumCellColor %>" align="right" valign="top" nowrap><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
<% =strCopyright %>
</font></td>
<td bgcolor="<% =strForumCellColor %>" width="10" nowrap><a href="#top"><img src="icon_go_up.gif" height="15" width="15" border="0" align="right" alt="Go To Top Of Page"></a></font></td>
</tr>
<tr>
<td align="right" colspan=3><font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
<a href="http://forum.snitz.com"><% if strShowImagePoweredBy = "1" then %><acronym title="Powered By: <% =strVersion %>"><img src="logo_powered_by.gif" border="0" WIDTH="142" HEIGHT="23"></acronym><%else%>Snitz Forums 2000 <%end if%></a>
</font>
</td>
</tr>
</table>
</font id=code></pre id=code>



- Alan <img src="http://smilecwm.tripod.com/net3/smileJap.gif" border=0>
<pre id=code><font face=courier size=2 id=code><%On Error goto Hell%></font id=code></pre id=code>

Edited by - aznknight on 29 August 2000 02:22:20

Nathan L
New Member

USA
83 Posts

Posted - 29 August 2000 :  13:39:32  Show Profile  Send Nathan L an AOL message  Send Nathan L an ICQ Message  Send Nathan L a Yahoo! Message
I brought this up while back, but no one wanted to listen to me. <img src=icon_smile_wink.gif border=0 align=middle> While I could live with a couple (I use them sparingly for things), but these are rediculous, IMHO!

Response.Write ("The Reign of Nice")
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07