I try to build fluid layout using percentages as widths. Do do so i tried this:
A
The problem is that if you have a new line between them in the HTML, then you get a space between them when you use inline-table
or inline-block
50% + 50% + that space > 100% and that's why the second one ends up below the first one
Solutions:
or
or
The idea is not to have any kind of space between the first closing div tag and the second opening div tag in your HTML.
PS - I would also use inline-block
instead of inline-table
for this