?
Solved

vertical alignment in a table cell

Posted on 2011-09-18
2
Medium Priority
?
137 Views
Last Modified: 2012-05-12
I have a table with a row that has two cells.  The first cell contains a single word and the second contains a textarea box that has some height.  I know the height of the first <td>, with the word, will be the same as the larger height of the second <td>, with the textarea.  But I notice that the single word text in the first td sinks to the bottom of that td, when I would like it to appear at the top of that td.  Is there an easy way to style that?

Thanks
Steve
0
Comment
Question by:steva
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
libby9284 earned 2000 total points
ID: 36558113
try setting the valign attribute of the <td>, more details here
0
 

Author Closing Comment

by:steva
ID: 36558210
Giving the td an attribute of valign="top" didn't do it but giving the td a  CSS style of vertical-align=top did work.

Thanks.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question