Jump to content

Website Questions


jack_h
 Share

Recommended Posts

heya all

im a bit stuck on something when building my website.

Im trying to 'format it' by adding a table and then type what i want into it. The problem is if i have got more text in one colum than in another the other moves down so it is not at the top.

hope ive explained my problem well enough. :icon_salut:

thanks

jack

Link to comment
Share on other sites

 

I would suggest trying a webdesign app such as Dreamweaver, makes all this a lot easier!

I think what you are looking for is the <td valign="top">Your Text Here</td> this will bring all the data in the cell to the top of the cell. Also valid are "middle", "bottom" and "baseline"

HTH

Pete

Edited by rcgods
Link to comment
Share on other sites

 

rcgod's suggestion is fundamentally correct but many recent XHTML parsers will complain about the use of "align" as a tag attribute. The solution is to use the "vertical-align" CSS directive in either the linked stylesheet or inline:

<td style="vertical-align:top;">Some text</td>

Either way will work of course but those of us who have to comply with every random standard that customers come across and consider to be holy gospel are acutely aware of this kind of thing.

Edited by neonsurge
Link to comment
Share on other sites

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
  • Create New...