Results 1 to 8 of 8

Thread: Space between tables

  1. #1
    Join Date
    Jan 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Space between tables

    Hello, I cannot for the life of me get rid of the annoying space between the two tables on my home page www.sgvdodgers.com. It seems there is nothing in the code that would indicate to the browser to implement a space between the tables. There are three tables, the top two are connected just fine, but there is a large space between the 2nd and third tables. Any ideas how to make this go away? Here is the code:

    <table width="950" border="1" cellpadding="5" align="center">
    <tr>
    <td align="center" width="150" height="150" bgcolor="white">
    <img src="dodgerslogo.jpg" width="150" height="150" align="center" />
    </td>

    <td align="center" bgcolor="#003399" valign="middle" width="650">
    <font size="+4" color="#ffffff">Welcome to the Home of the</font> <br />
    <font size="+6" color="#FFFFFF">SGV Dodgers</font>
    </td>

    <td align="center" width="150" height="150" bgcolor="white">
    <img src="dodgerslogo.jpg" width="149" height="149" align="center" />
    </td>
    </tr>
    </table>


    <table width="950" border="1" bordercolor="white">
    <tr>
    <td height="80" align="center" bgcolor="#000099" valign="middle">

    <center>
    <p><font color="white"><strong>
    Manager: Omar Serrato 909-268-3971 oserrato32@yahoo.com <br />
    Assistant Managers: Bobby Quinn, Saul Valderrama<br />
    Team Administrator: Brent Kroeger; God Father: Sal Correa <br />
    </strong></font> </p>
    </center>

    </td>
    </tr>
    </table>

    The space occurs here
    <table width="950" border="1" bordercolor="white">

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Yeah, that's because tables a block-level elements, so logically they won't be right next to each other. You are using more than one table here, and that is the reason why they aren't "connected" more tightly
    - Mike

  3. #3
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Try this:
    Code:
    <table width="950" border="1" cellpadding="5" align="center">
    <tr>
    <td align="center" width="150" height="150" bgcolor="white">
    <img src="dodgerslogo.jpg" width="150" height="150" align="center" />
    </td>
    
    <td align="center" bgcolor="#003399" valign="middle" width="650">
    <font size="+4" color="#ffffff">Welcome to the Home of the</font> <br />
    <font size="+6" color="#FFFFFF">SGV Dodgers</font>
    </td>
    
    <td align="center" width="150" height="150" bgcolor="white">
    <img src="dodgerslogo.jpg" width="149" height="149" align="center" />
    </td>
    </tr>
    </table>
    
    
    <div style="text-align:center">
    <div style="width:950px;background:#000099;text-align:center">
    <font color="white"><strong>
    Manager: Omar Serrato 909-268-3971 oserrato32@yahoo.com <br />
    Assistant Managers: Bobby Quinn, Saul Valderrama<br />
    Team Administrator: Brent Kroeger; God Father: Sal Correa <br />
    </strong></font>
    </div>
    </div>
    - Mike

  4. #4
    Join Date
    Jan 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Any ideas on how to get rid of the spaces? I tried to make it all one table but it just doesn't work.

  5. #5
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Did you try my suggestion above?
    - Mike

  6. #6
    Join Date
    Jan 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yeah it didn't work so well, still experimenting

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Looking at your page, I think it might be the flash objects that are causing this for some reason but, I canot see why. This fixed it up though:

    Code:
     . . .          Assistant Managers: Bobby Quinn, Saul Valderrama<br />
              Team Administrator:  Brent Kroeger; God Father: Sal Correa <br />
    	     </strong></font>  </p>
    	     </center>
    	
           </td>		 </tr>
    
    	   </table>
    
    			 
    			 
    	<table width="950" border="1" bordercolor="white" style="margin-top:-45px;">
    	 <tr>
       		 <td width="150" valign="top" bgcolor="#000099"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="150" height="30">
               <param name="BGCOLOR" . . .
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Jan 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, that worked!!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •