S
steve
Hi All
I am having annoying problems with VS 2005 (VB) positioning tables on a web
page
If I create HTML tables for layout, sometimes the next table sits at the
bottom of the above table and other times there is a gap of about 10mm
between them
I am at a loss as the code is identical
It is really starting to irritate me as I am spending hours on trying to
format the page
If anybody can point me in the right direction I would be most appreciative
You can see the web at
www.microsolutions.net.au
The code follows...
regards
Steve
<form id="mainForm" runat="server">
<!--
Header
-->
<table border="0" cellspacing="0" cellpadding="0" id="header" width="100%"
style="height: 80px; font-size: 24px; background-color: royalblue;">
<tr>
<td style="width: 100%" align="center"><strong><a href="Default.aspx"><span
style="font-size: 24pt">Geelong Microsolutions</span></a></strong></td>
</tr>
</table>
*** there is NO gap between these tables *****************
<table border="0" cellspacing="0" cellpadding="0" id="mainmenu" width="100%"
style="height: 22px; background-color: whitesmoke;">
<tr>
<td style="width: 10%" align="center"><strong><a
href="Default.aspx">Home</a></strong></td>
<td style="width: 10%" align="center"><strong><a
href="Products.aspx">Products</a></strong></td>
<td style="width: 10%" align="center"><strong><a
href="Downloads.aspx">Downloads</a></strong></td>
<td style="width: 70%" align="center"></td>
</tr>
</table>
**** There is a 10mm gap between these tables*********
<table border="0" cellspacing="0" cellpadding="0" id="content-container"
width="100%" style="height: 537px;">
<tr>
<!--
LEFT COLUMN
-->
<td id="content-left" style="height: 537px; width: 115px; background-color:
whitesmoke;">
</td>
<!--
CONTENT
-->
<td id="content" style="width: 453px; height: 537px;" valign="top">
<asp:ContentPlaceHolder ID="Content" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="width: 112px; height: 537px; background-color: whitesmoke"
valign="top">
<asp:Image ID="Image1" runat="server" Height="240px"
ImageUrl="~/App_Themes/default/Images/ad-01.gif"
Width="120px" /><br />
<br />
<br />
<asp:Image ID="Image2" runat="server" Height="240px"
ImageUrl="~/App_Themes/default/Images/ad-02.gif"
Width="120px" /><br />
<br />
<br />
<asp:Image ID="Image3" runat="server"
ImageUrl="~/App_Themes/default/Images/ad-03.gif"
Width="120px" /></td>
</tr>
</table>
<!--
FOOTER
-->
<table border="0" cellspacing="0" cellpadding="0" id="footer" width="100%">
<tr>
<td><p>
Drysdale Vic 3222<br />
(03) 52535111<br />
Copyright © 2005 Geelong Microsolutions </p></td>
</tr>
</table>
</form>
I am having annoying problems with VS 2005 (VB) positioning tables on a web
page
If I create HTML tables for layout, sometimes the next table sits at the
bottom of the above table and other times there is a gap of about 10mm
between them
I am at a loss as the code is identical
It is really starting to irritate me as I am spending hours on trying to
format the page
If anybody can point me in the right direction I would be most appreciative
You can see the web at
www.microsolutions.net.au
The code follows...
regards
Steve
<form id="mainForm" runat="server">
<!--
Header
-->
<table border="0" cellspacing="0" cellpadding="0" id="header" width="100%"
style="height: 80px; font-size: 24px; background-color: royalblue;">
<tr>
<td style="width: 100%" align="center"><strong><a href="Default.aspx"><span
style="font-size: 24pt">Geelong Microsolutions</span></a></strong></td>
</tr>
</table>
*** there is NO gap between these tables *****************
<table border="0" cellspacing="0" cellpadding="0" id="mainmenu" width="100%"
style="height: 22px; background-color: whitesmoke;">
<tr>
<td style="width: 10%" align="center"><strong><a
href="Default.aspx">Home</a></strong></td>
<td style="width: 10%" align="center"><strong><a
href="Products.aspx">Products</a></strong></td>
<td style="width: 10%" align="center"><strong><a
href="Downloads.aspx">Downloads</a></strong></td>
<td style="width: 70%" align="center"></td>
</tr>
</table>
**** There is a 10mm gap between these tables*********
<table border="0" cellspacing="0" cellpadding="0" id="content-container"
width="100%" style="height: 537px;">
<tr>
<!--
LEFT COLUMN
-->
<td id="content-left" style="height: 537px; width: 115px; background-color:
whitesmoke;">
</td>
<!--
CONTENT
-->
<td id="content" style="width: 453px; height: 537px;" valign="top">
<asp:ContentPlaceHolder ID="Content" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="width: 112px; height: 537px; background-color: whitesmoke"
valign="top">
<asp:Image ID="Image1" runat="server" Height="240px"
ImageUrl="~/App_Themes/default/Images/ad-01.gif"
Width="120px" /><br />
<br />
<br />
<asp:Image ID="Image2" runat="server" Height="240px"
ImageUrl="~/App_Themes/default/Images/ad-02.gif"
Width="120px" /><br />
<br />
<br />
<asp:Image ID="Image3" runat="server"
ImageUrl="~/App_Themes/default/Images/ad-03.gif"
Width="120px" /></td>
</tr>
</table>
<!--
FOOTER
-->
<table border="0" cellspacing="0" cellpadding="0" id="footer" width="100%">
<tr>
<td><p>
Drysdale Vic 3222<br />
(03) 52535111<br />
Copyright © 2005 Geelong Microsolutions </p></td>
</tr>
</table>
</form>