How to align text at the top left-hand corner?
Posted
by
OverTheRainbow
on Super User
See other posts from Super User
or by OverTheRainbow
Published on 2012-10-17T10:46:34Z
Indexed on
2012/10/17
11:05 UTC
Read the original article
Hit count: 364
I'd like to use stylesheet instead of hard-coding HTML so that text within cells are aligned vertically, ie. text starts at the upper left-hand corner.
However, neither of this works:
<head>
<link rel="STYLESHEET" href="display.css" type="text/css">
<style>
td {vertical-align:top; font-size:x-small}
td {vertical-align:text-top; font-size:x-small}
</style>
</head>
Does someone know?
Thank you.
Edit: Problem solved. Turns out the HTML editor I'm using is a bit old and didn't display things as expected, but they do show OK in a modern browser with "vertical-align:top".
© Super User or respective owner