Alignment issue when placing an image and text inside one <TD> tag
Posted on 2003-12-10
When inside a <TD> tag, I place an image and a text, there seems to a slight alignment problem. The text is aligned to the bottom of the cell whereas the image center aligned.
<td><a href="#"><img src="xyz.gif" width="11" height="22" alt=""> sometext</a></td>
In the browser, "sometext" is aligned bottom.
Is there any way, I can fix this without placing the image and the text in two different cells. I could have done this in two different cells, but if you look at the example, the image and the text is inside the href tag and if I place them in two different cells, then I should have href to be given for both, which I would like to avoid.
Please let me know if this is possible. One more very important thing, the solution should be working in both IE and Netscape 4.x and higher versions.
Thank you all in advance