Solved

vertical alignment in a table cell

Posted on 2011-09-18
2
131 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
2 Comments
 
LVL 3

Accepted Solution

by:
libby9284 earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Glyph icons in Bootstrap 3 4 38
Fixing my modal from bootstrap 18 39
Form not operating correctly. 1 23
insert text field data into html script 13 30
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

864 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now