View Full Version : Very simple Question - Text Alignment

03-29-2006, 07:29 AM
Hi everyone a very simple question please

In the table <td>i have a placed an image which is say 200 of height, just next to it i have written my text heading but the text is aligning itself to the base of the image however i have given the Valign to top/bottom and middle but didnt worked, the text is still there in the baseline of the image, can the text be placed to the top, IF i am not explaining right i am pasting the code here as well.

<table width="200" border="0" cellpadding="0" cellspacing="0">
<td valign="top">
<span class="style1">LONDON LONDON</span></td>

Please can any one let me know why?


Creative Insanity
03-29-2006, 08:17 AM
Have your TR with 2 TDs and have one for your image and one for the text.

03-29-2006, 12:29 PM
Thanks buddy

But Is this the only solution for this query?


03-29-2006, 01:59 PM
Here's a quick example:
<span>Text here</span>
No need for any alignment styles on the text.

03-29-2006, 05:18 PM
Thanks for the help mate.