single-serving home
>
Site Map
>
HTML vAlign attribute
-
advanced search
Site Map
What's New
My trials in getting vAlign to align images along a centerline instead of a baseline.
Here I put the <valign="middle"> tag within the table cell (td) tag, but it didn't do anything.
<table bgcolor="e53993"><tr><td valign="middle">
Here I put the <valign="middle"> tag within the table row (tr) tag, but it didn't do anything.
<table bgcolor="e53993"><tr valign="middle"><td>
Here I put the <valign="middle"> tag within each of the image (img) tags, and I finally got what I wanted.
<img src="tall.gif" alt="" width=29 height=70 valign="middle">
<img src="long.gif" alt="" width=70 height=29 valign="middle">
<img src="tall.gif" alt="" width=29 height=70 valign="middle">
<img src="long.gif" alt="" width=70 height=29 valign="middle">