logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-29-2006, 06:29 AM   #1
fahadbht
 
Join Date: Mar 2006
Posts: 3
Default Very simple Question - Text Alignment

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.

Code:
<table width="200" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top">
[img]/images/my_logo.jpg[/img]
<span class="style1">LONDON LONDON</span></td>
  </tr>
</table>
Please can any one let me know why?

Thanks
F.
fahadbht is offline   Reply With Quote
Old 03-29-2006, 07:17 AM   #2
Creative Insanity
Banned
Creative Insanity's Avatar
 
Join Date: Oct 2005
Location: KiwiLand (stalk that far dj LOL)
Posts: 1,967
Default

Have your TR with 2 TDs and have one for your image and one for the text.
Creative Insanity is offline   Reply With Quote
Old 03-29-2006, 11:29 AM   #3
fahadbht
 
Join Date: Mar 2006
Posts: 3
Default Is this the only way to do that?

Thanks buddy

But Is this the only solution for this query?

F.
fahadbht is offline   Reply With Quote
Old 03-29-2006, 12:59 PM   #4
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Here's a quick example:
Code:
[img]266611.jpg[/img]
<span>Text here</span>
No need for any alignment styles on the text.
domedia is offline   Reply With Quote
Old 03-29-2006, 04:18 PM   #5
fahadbht
 
Join Date: Mar 2006
Posts: 3
Default Thanks Buddy

Thanks for the help mate.
fahadbht is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:39 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com