Forum Moderators: open

Message Too Old, No Replies

can't align content to top of table cell

         

Quasar2008

11:51 pm on May 2, 2008 (gmt 0)

10+ Year Member



I'm using a VERY simple table to line up some jpgs since I don't have the software to create a panorama properly. I want the images (most are same height) to line up on the top of the table cell (only one cell is used).

<table width="90%" border="1" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td align="left" valign="top"><img src="view1.jpg"><img src="view2.jpg"><img src="view3.jpg"><img src="view4.jpg"></td>
<td align="left" valign="top">&nbsp;</td>
</tr>
</table>

I've used both Firefox 2 and IE 6 ...
view1.jpg is shorter than the others and I want it to line up at the top rather than the bottom. In order to have the pics keep closely together, I decided to keep all in one cell.

Any suggestions, other than crop all other images to same height?

daveVk

6:55 am on May 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maybe

<td align="left" valign="top" style="vertical-align:top">

Trace

3:32 pm on May 5, 2008 (gmt 0)

10+ Year Member



You need to add
<img src="view1.jpg" align="top">