473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Help with HTML tables

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 &copy; 2005 Geelong Microsolutions&nbsp;</p></td>

</tr>

</table>

</form>
Mar 29 '06 #1
4 1454
Steve,

This could be an artifact of your css definition for a table in
Default.css. (margin-bottom: 20px). (Line 13).

Your header table has the margin-bottom redefined to 1px in the
definition for #header (Line 183). There is no corresponding #mainmenu
definition.
Hope this helps.
Brett.

Mar 29 '06 #2
Put the tables inside the cells of another table and setup cellspacing and
the spacepadding for the outer table as you wish.

Eliyahu

"steve" <ga*****@newsgroups.nospam> wrote in message
news:ux**************@TK2MSFTNGP11.phx.gbl...
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 &copy; 2005 Geelong Microsolutions&nbsp;</p></td>

</tr>

</table>

</form>

Mar 29 '06 #3
Brett

You were spot on with the .css issue

Thank you

Steve

"Brett Wiltshire" <br*************@commerzbank.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
Steve,

This could be an artifact of your css definition for a table in
Default.css. (margin-bottom: 20px). (Line 13).

Your header table has the margin-bottom redefined to 1px in the
definition for #header (Line 183). There is no corresponding #mainmenu
definition.
Hope this helps.
Brett.

Mar 29 '06 #4
Eliyahu

Thanks for your reply

Steve
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:Ot**************@TK2MSFTNGP14.phx.gbl...
Put the tables inside the cells of another table and setup cellspacing and
the spacepadding for the outer table as you wish.

Eliyahu

"steve" <ga*****@newsgroups.nospam> wrote in message
news:ux**************@TK2MSFTNGP11.phx.gbl...
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 &copy; 2005 Geelong Microsolutions&nbsp;</p></td>

</tr>

</table>

</form>


Mar 29 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Martin Euredjian | last post by:
I could use a shove in the right direction... I'm using the Dreamweaver MX suite to build a website for my business. At first I threw something together quickly just to get going. I now need...
12
by: windandwaves | last post by:
Hi Folks I have just completed a project for an accommodation finder in New Zealand - much with your help - thank you again. I would appreciate any constructive or deconstructive comments. ...
0
by: Mark Adams | last post by:
I really need some help with this. MySQL will not start on boot despite everything I've done to make sure that it is set to do so. When I start it as root from a terminal with...
0
by: EasyRider41 | last post by:
I am trying to merge to scripting samples I for on a source code web site and having limited luck. Then first one is called Zebra Tables witch colors alternate rows of a table to look beter. The...
21
by: BT | last post by:
I inherited a simple page that needs to be Strict HTML and I'm not very familiar with this standard. What I'm trying to do _should be_ pretty simple so I hope someone can point me in the right...
8
by: newbie | last post by:
hello How can I update more than one tables on the same form? The relationship is one to many from a master table to 3 other related tables. on the form, I have to setvalue for a few...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
15
by: scorpion53061 | last post by:
I have a time critical function I need assistance with. You should be familiar with windows forms, ADO.NET and MS Word Automation. If you are interested please email me at ...
7
by: arupfrancis | last post by:
Hi, I am trying to create a colored box using background images. I am able to do it easily using tables but doing it in divs is proving to be an issue. Moreover IE and Mozilla also seems to be...
6
by: poisonedapple | last post by:
I am trying to parse a simple table with two headings and get the rows but I am having a big problem trying to find out how to pass the link to the html or path to the html. Html is apparently in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.