PDA

View Full Version : Very simple Question - Text Alignment


fahadbht
03-29-2006, 06: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">
<tr>
<td valign="top">
/images/my_logo.jpg
<span class="style1">LONDON LONDON</span></td>
</tr>
</table>

Please can any one let me know why?

Thanks
F.

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

fahadbht
03-29-2006, 11:29 AM
Thanks buddy

But Is this the only solution for this query?

F.

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

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