SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Caption to Photo

    When I use the following their is a big space between photo and caption....what am I doing wrong?
    table align="left">
    <tr>

    <td><img src="images/shroud.jpg" width="145" height="200"
    </td>

    </tr>
    <tr>
    <td>>

    <center><b>Pavel de Barfart</center>
    </td>
    </tr>

    </table>

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,200
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Hi Barnum. You have an extra bracket that is causing the problem. Remove the bit in red:

    Code:
    <table align="left">
    <tr>
    	<td>
    		<img src="images/shroud.jpg" width="145" height="200" 
    	</td>	
    </tr>	
    <tr> 
    	<td>>
    		<center><b>Pavel de Barfart</b></center>
    	</td>
    </tr>	
    </table>
    Also notice the closing </b> (in blue). You can get away with not including it, but it's safer to have it there.

  3. #3
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Did this and he caption is still about three lines below the photo?

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,200
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    It might be your CSS then. Can you post a link? Then we can tell you the problem straight away.

  5. #5
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You got me looking at the CSS, and I found the error. Image margin was too big....

    Thanks for all your help and suggestions. Never thought about the CSS part.

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,200
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Well done. Glad yo got it sorted, Barnum. It's more satisfying to find the answer yourself.

  7. #7
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You are right, but you guys got me looking at it, and I cannot thank you enough....love this site.

  8. #8
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,200
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    That's great to hear, Barnum. Thanks.


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
  •