Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Vertical alignment

 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Here's what I'm trying to do (without success). I have the following table structure :



I have content here (images, text, etc..,) that I want to split up. The contents here are also in table format to organize everything. One section needs to go to the top of the cell and the second section needs to go to the bottom. I've tried a couple of things but can't get the end results I need. Since the second and third td tags marked with widths of 25% and 50% have more content and stretch the overall table down I need the content in the first td tag to be split (as mentioned 1/2 content floats to top and second 1/2 goes to bottom of cell). Any help would be appreciated. Thanks in advance.

AF
 
Dave Bilson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you using tables for layout? Wouldn't CSS be better?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic