I'm trying to achieve a particular layout using the least number of containers as possible, but am stumped as to whether or not this can be done. The layout is shown below:
....................
....................
.........
||||||||| .........
||||||||| .........
||||||||| .........
||||||||| .........
|||||||||
||||||||||||||||||||
||||||||||||||||||||
Now, I understand that the spacing between the two components can be achieved using appropriate padding on the top and right of the |||
content and the bottom and left of the ...
content.
However, is there a way to use only 2 major containers and achieve such a layout? It can be assumed that the content of the two containers will be text exclusively, and that the width of the overall container is fixed.
That is, I'm looking to have a structure that looks something like:
<div class="content" width="800px">
<div id="content-a">
..............................................
</div>
<div id="content-b">
||||||||||||||||||||||||||||||||||||||||||||||
</div>
</div>
where appropriate styling and positioning have been assigned to content-a and content-b to result in the shown layout. The exact nesting of the DIV's is not important, but limiting it to 1 DIV per piece of content is.