Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Table causing a gap, no way to remove it.
Old 08-13-2011, 01:01 PM Table causing a gap, no way to remove it.
Experienced Talker

Posts: 49
Trades: 0

Problem:

Paragraph is

www.barrister-direct.com/style3.php


Where the gap appears the code appears for the sidebar. Perhaps the size of the sidebar image is causing the problem?



Code:

PHP Code:
<p>I am qualified as a Californian attorney and may accept    instructions in matters with an Anglo-American element. </p></td>                      <td width="250"><img src="rc102.jpg">                                   </td>                   </tr>                   <tr>                     <td><h1><strong>What can you do when you are directly instructed?</strong></h1>                       <p>I am able to advise you about the strength of your case    and how you should pursue itI may do this in writingover th 
dimensio is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-13-2011, 04:37 PM Re: Table causing a gap, no way to remove it.
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
What is this?

<img src="rc102.jpg">

EDIT: Nevermind, I found it.

Could it possibly be a top margin on the following h1?
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!

Last edited by Physicsguy; 08-13-2011 at 04:40 PM..
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 08-13-2011, 08:11 PM Re: Table causing a gap, no way to remove it.
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
It's because the image in the right column requires that height. If the image were smaller, or if you just add more text to the left column, there would not be any gap. To easily see what I mean, try adding a border to all the cells. Add this CSS

Code:
td {
   border: 1px solid #f00;
}
Now, to the solution. The clever way of solving this is to let the right cell that has the image stretch down over two rows, instead of one as it does now. I'll give you an example:

Currently, your code looks like this
HTML Code:
<table>
   <tr>
      <td>Left column with text</td>
      <td>Right column with image</td>
   </tr>
   <tr>
      <td>Left column with more text</td>
      <td>Empty cell</td>
   </tr>
</table>
Change it into this
HTML Code:
<table>
   <tr>
      <td>Left column with text</td>
      <td rowspan="2">Right column with image, that will stretch over 2 rows instead of 1</td>
   </tr>
   <tr>
      <td>Left column with more text</td>
   </tr>
</table>
Also, you have two empty rows in the bottom of the table, you can remove those. I mean the ones that look like this
HTML Code:
   <tr>
      <td></td>
      <td></td>
   </tr>
   <tr>
      <td></td>
      <td></td>
   </tr>
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.

Last edited by lizciz; 08-13-2011 at 08:15 PM..
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 08-13-2011, 08:18 PM Re: Table causing a gap, no way to remove it.
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
...Or you could do that. Nice job, lizciz
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 08-13-2011, 08:49 PM Re: Table causing a gap, no way to remove it.
Experienced Talker

Posts: 49
Trades: 0
thanks for your help its really appreciated !

I tried to rowspan thing but it moved the image in right column down the page a lot

I thought maybe I could use an ALIGN=TOP to bring it up to the top but to no avail



HTML Code:
</span></p>
<p>I am qualified as a Californian attorney and may accept    instructions in matters with an Anglo-American element. </span></p></td>
                     <td  rowspan="2" width="250"><img src="rc102.jpg"  ALIGN=TOP/>
             
                    </td>
                  </tr>
                  <tr>
                    <td><h1><strong>What can you do when you are directly instructed?</strong></h1>
// Then table continues with content for LHS before ending in </td>
dimensio is offline
Reply With Quote
View Public Profile
 
Old 08-13-2011, 08:51 PM Re: Table causing a gap, no way to remove it.
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
Use valign="top"
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 08-13-2011, 09:17 PM Re: Table causing a gap, no way to remove it.
Experienced Talker

Posts: 49
Trades: 0
worked perfectly


HTML Code:
   <td  valign="top" rowspan="2" width="250"><img src="rc102.jpg"  />
thanks
dimensio is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Table causing a gap, no way to remove it.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 6.24611 seconds with 12 queries