Let say I desire the following layout:
___________ ___________
| | |
| | B |
| A |___________|
| | |
| | C |
|___________|___________|
To achieve this, my original thinking was that a block element would start on a new line only within the scope of its parent. Therefore, I thought I would try the following:
<span id="A">
<!-- A's content-->
</span>
<span id="B_and_C">
<div id="B">
<!-- B's content -->
</div>
<div>
<!-- C's content-->
</div>
</span>
Unfortunately, it appears as though my <div>
s are creating new lines entirely, resulting in:
___________
| |
| |
| A |
| |
| |
|___________|
| |
| B |
|___________|
| |
| C |
|___________|
Is there a way to make my <div>
s act as block elements within the scope of their parent only? Otherwise, is there another recommended solution to achieve my desired layout?