Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem with Table on An ASP Page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with Table on An ASP Page

 Post Reply Post Reply
Author
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Topic: Problem with Table on An ASP Page
    Posted: 09 September 2004 at 10:34pm
I am not happy with the way my table looks at 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?
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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>
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post 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. Does anyone have ideas on how I can fix this problem?
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post 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"
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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">
   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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.