Solved

vertical alignment in a table cell

Posted on 2011-09-18
2
130 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
This article discusses four methods for overlaying images in a container on a web page
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 …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

707 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

17 Experts available now in Live!

Get 1:1 Help Now