I want to tile my page horitontally and vertically, recursively too. E.g. that the page is split into three columns, whereby the third column is split into two rows.
<div id="left/>
<div id="right">
<div id="top">...</div>
<div id="bottom">...</div>
</div>
This fiddle explains what I am talking about: https://jsfiddle.net/zuyu1ed7/
This design works, until you start adding content. Giving one of these containers a border, a margin or a padding results in chaos. The whole layout seems to be very sensible.
Also, trying to add an <div style="width:100%; padding: 10px;"/>
inside these containers has the same layout-destructing effects. This situation trandcends my knowledge about css.
At first I thought of using tables, your best friend if css keeps mocking you. But then I saw that html5 does not longer support most colgroup
-attributes. So that idea was an dead end.
My question is: How do I split div's horizontally and vertically as shown in the fiddle and be able to add content to the containers?
I am thankful for any solution, but of course I would prefer a solution that works in all browsers.