Print Page | Close Window

Problem with Table on An ASP Page

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=11748
Printed Date: 31 March 2026 at 1:17am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Problem with Table on An ASP Page
Posted By: Misty
Subject: Problem with Table on An ASP Page
Date Posted: 09 September 2004 at 10:34pm
I am not happy with the way my table looks at http://www.borderlandsbaptistassociation.org/churches.asp - http://www.borderlandsbaptistassociation.org/churches.asp . I want the physical address to be much closer to the mailing address. I have tried many different things. Please view the HTML Source on this web page. How do I make the physical address much closer to the mailing address?



Replies:
Posted By: michael
Date Posted: 09 September 2004 at 10:44pm
In the table you got one time just one column, then you got 2 once you even got a colspan=20. The sum of columns in each row must be the same for 1 table, so <td></td><td></td> = <td colspan=2></td> and not = <td colspan=20></td>

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


Posted By: Misty
Date Posted: 09 September 2004 at 11:32pm
I changed the colspan to 2. But I still cannot get the physical address closer to the mailing address at http://www.borderlandsbaptistassociation.org/churches.asp - http://www.borderlandsbaptistassociation.org/churches.asp . Does anyone have ideas on how I can fix this problem?


Posted By: ljamal
Date Posted: 09 September 2004 at 11:47pm
You need to set the width of the columns. Because you haven't the first columns spans to the size of the widest text region "Iglesia Bautista Divino Salvador-Vista Bonita"

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: dpyers
Date Posted: 10 September 2004 at 12:41am

That tables in bad shape. You should loose the height= in the table tag. Also, at the end, your </center></table> tags need to be reversed to match their order where the table starts.

You're problem is with column spans, and it's complicated to explain, but basically, I believe you're thinking of it as a single column table with some rows containing two columns when actually, it's a 2 column table with some rows containing a single cell that spans two columns. so here's a code example.

<table align="center" width="740" border="0" cellpadding="0" style="border-collapse: collapse" >
 <tr>
  <td colspan="2"><strong><font size=5>Centro Bautista de Alabanza y Adoracion </font></strong>
  </td>
 </tr>
 <tr>
  <td colspan="2">956-792-2630&nbsp; (Phone) </td>
 </tr>
 <tr>
  <td bgcolor="#0033CC" colspan="2"><font color="#FFFFFF">Addresses</font></td>
 </tr>
 <tr>
  <td width="50%"><strong><font color=#0033CC>Mailing Address</font></strong></td>
  <td width="50%"><strong><font color=#0033CC>Physical Address</font></strong></td>
 </tr>
 <tr>
  <td width="50%">223 Constellation</td>
  <td width="50%">&nbsp;</td>
 </tr>
 <tr>
  <td width="50%">Pharr,&nbsp;TX&nbsp; 78577</td>
  <td width="50%">&nbsp;</td>
 </tr>
 <tr>
  <td bgcolor="#0033CC" colspan="2"><font color="#FFFFFF">Pastor</font></td>
 </tr>
 <tr>
  <td colspan="2"><strong>David Magallan,&nbsp; Pastor</strong></td>
 </tr>
 <tr>
  <td bgcolor="#0033CC" colspan="2">&nbsp;</td>
 </tr>
 <tr>
  <td colspan="2"><strong><a href=" mailto:xxx@aol.com - mailto:xxx@aol.com ">
    mailto:xxx@aol.com xxx@aol.com</a></strong><strong></strong></td>
 </tr>
 <tr>
  <td colspan="2">&nbsp;</td>
 </tr>
 </table>

The address rows have two columns. The size of those columns is governed by the size of the table in most browsers. To move them closer together, either get rid of the width=740 in the table tag
or
change those address rows to have 3 columns each with a width of 33% and just use  the first two columns. You'd also need to change the rows with a colspan=2 to colspan=3



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

Lead me not into temptation... I know the short cut, follow me.



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