Positioning Photos in a Grid (HTML)

Posted by Daniel O'Connor on Stack Overflow See other posts from Stack Overflow or by Daniel O'Connor
Published on 2010-06-01T01:44:21Z Indexed on 2010/06/01 1:53 UTC
Read the original article Hit count: 188

Filed under:
|
|
|
|

Hey Everyone,

I've been trying to code this page for a while, but my biggest problem is that I can't seem to get the photos perfectly positioned. For some reason, there is a small bottom padding in each <td>which is messing things up.

Here is the table code:

<table>
    <tr>
        <td rowspan="2" style="height:353px;"><img src="danoconnor/img/photography/farm.jpg" height="353" width="470" alt="Farm" /></td>
        <td><img src="danoconnor/img/photography/paragliding.jpg" height="190" width="254" alt="Paraglider" /></td>
        <td rowspan="2"><img src="danoconnor/img/photography/cristo.jpg" height="353" width="230" alt="Cristo Redentor" /></td>
    </tr>
    <tr>
        <td><img src="danoconnor/img/photography/u2.jpg" height="154" width="254" alt="U2 at Fordham University" /></td>
    </tr>
</table>

My question is: how can I make the photogrid look like this?

Thanks!

© Stack Overflow or respective owner

Related posts about html

Related posts about css