I'm building a responsive design and I need two equal height columns. I don't want to rely on JavaScript, and I would like whitespace in between the columns for extra legibility.
I've made two layouts; one using display:table;
and the other using float
and position
. The problem here is that I can't seem to get the latter method to have whitespace in between the columns, while the table method works fine in this aspect.
Because of this, I'd ideally like to use the table method, but I was wondering if this was an acceptable way to achieve an equal height column design for a webite that will utilize modern web standards?
From a little research, I've found the display:table
method to be compatible with the following browsers (by supporting all of the necessary CSS properties that I will need):
A Google search for "Is CSS display table a good idea?" reveals several articles which are against the CSS table method, In particular, this article which I've been reading. I'm aware that it's several years old, so what exactly is the overall acceptance of this method nowadays, considering the level of browser support I've found above?
I want to drop support for Internet Explorer 7 and below, and I'm not sure about Firefox 3 and below (open to suggestions).
Also, I would generally want to test in older browsers/browser versions, but my laptop doesn't have enough RAM to run a virtual machine and downloading the necessary files would take hours on an inconstant 10-20 Mb/s connection. Are there any alternatives (all other computers in the house don't have older browsers either)?
Thanks!
Yes it is, take a look at Bootstrap 's source code, they grid this way
In your browser look for
display: table;
and you will see how they implement it in the .row
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With