table content alignment (CSS)

  • Drake
  • Beginner
  • Beginner
  • User avatar
  • Posts: 47
  • Loc: Canada

Post 3+ Months Ago

Hey guys,

How can I make my tables align like the top example, and not the bottom example:

Image

They always seem to align like the bottom one, which I don't want. :?:
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Code: [ Select ]
<td valign="top">

That's how, in HTML

Not sure how to do that in CSS though... Too lazy to find out right now
  • dyfrin
  • Expert
  • Expert
  • User avatar
  • Posts: 503
  • Loc: WI

Post 3+ Months Ago

style the tr, most positional css won't work on a td.
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

dyfrin wrote:
style the tr, most positional css won't work on a td.


Which positional doesn't work on TDs?

Code: [ Select ]
vertical-align: top
  • dyfrin
  • Expert
  • Expert
  • User avatar
  • Posts: 503
  • Loc: WI

Post 3+ Months Ago

not text positional, td positional, like line height, etc.
So might as well style tr instead so you don't have to style both tr and td.
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

Hmm...I've never noticed. I'll have to pay closer attention to that in the future :P

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 51 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.