BruceyBandit BruceyBandit - 1 month ago 6
CSS Question

How to display tables inline by lining them up by the top of the tables

I have two tables next to each other and problem is that I want both tables to display inline with each other but I want them inline with the table headings inline with each other. It does this in internet explorer and opera but it does not do this for safari, firefox and google chrome as in those browsers it displays the tables inline but inline by bottom of the table and not top of the table.

How can I do this?

Code is here in Jsfiddle


You can use the vertical-align property to force the table to the top of the block. Change the CSS to this:

  display: inline-block;
  vertical-align: top;