Link to home
Start Free TrialLog in
Avatar of altnoise
altnoise

asked on

how to get a table to align to top of a cell

Hi,
I have a cell that contains a table and I would like to get the table to sit at the top of that cell rather than hover in the middle.  Is there any way I can do this?

Many thanks,
James
ASKER CERTIFIED SOLUTION
Avatar of dorward
dorward

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of icepricessa
icepricessa

i agree with dorward...

you should do this <td valign="top">  <table> </table>  </td>

hope it works :)
icepricessa: I wasn't suggesting that people _should_ use the obsolete 1996 technique.
Um, technically, valign isn't "obsolete" -- it's not deprecated in the HTML 4 spec (for TD or TH at least).

Not that I don't agree that CSS is better -- or that not using nested tables in the first place is even better yet! -- just nitpicking. ;^)
"Deprecated" and "obsolete", while applying to a lot of the same parts of HTML, are not synonyms
Avatar of altnoise

ASKER

Thanks for your help!  I agree though nested tables are a little bit of a quick fix.  I'll try and improve my design practices.
Thanks,
James