SitePoint Sponsor

User Tag List

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

    How do change the space between photo and caption?

    I asked this question before but still can't seem to grasp how to do it... I want to decrease the space between my photos and captions. It may have to do with my use of tables... This is what I have

    <table align="left">
    <tr>
    <td><img src="images/Gair.jpg" width="200" height="120">
    </td>



    </tr>
    <tr>
    <td><center><font color="#8A360F"><font size="3">The SS Gairsoppa</font></center></td>

    </tr>
    </table>

    And in my CSS I have the following:

    .imgAndCapt{text-align:center;}
    .imgAndCapt b {color: #8A360F; display:block;
    margin-top: 5px;
    }
    ---------

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,506
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    That HTML and CSS have nothing to do with one another?

  3. #3
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Okay then looking at the following, why are the captions to the 2nd two photos not lining up with the first?

    <table align="center">
    <tr>

    <td><img src="images/Condor.jpg" width="200" height="270">
    </td>


    <td><img src="images/Ernst.jpg" width="200" height="270">
    </td>

    <td><img src="images/sub.jpg" width="270" height="270">
    </td>


    </tr>
    <tr>
    <td><center><font color="#8A360F"><font size="3">Condor</font></center></td>

    <td><center><font color="#8A360F"><font size="3"></br>Ernst Mengersen</font></center></td>

    <td><center><font color="#8A360F"><font size="3"></br>U-101</br> Ernst Mengersen</font></center></td>


    </tr>
    </table>

  4. #4
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,506
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Maybe because you have a <br /> in front of the second and third image's captions

    It would be easier to check if you could give a link to the page.


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
  •