BruceyBandit BruceyBandit - 1 year ago 61
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

Answer Source

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;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download