Struggling to figure out how to achieve this in html, I would like the solution to be limited to just html + css. Javascript/jquery is being utilized on the site, yet I don't want my design to rely on javascript.
Section A contains a list of variable width items pulled from a database, ranging from 9em-15em wide. Section B also has overflowing text. My goal is for A to adjust its width based on content and for Section B to take up any remaining space available.
Is there a way to make this work? Any recommendations for books that could help me build a strong foundation in html+css would be appreciated!
---------------------------------------------
| |^| |^|
| | | | |
| | | | |
| | | | |
| A | | B | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| |v| |v|
----------------------------------------------
The current setup I have causes issues when Section B overflows, resulting in "A" shrinking and the divs going onto two lines, which is not acceptable.
<div id="SectionA" style="float:left">
<div>Just TEst data</div>
<div>Just data</div>
...
<div>Just data</div>
</div>
<div id="SectionB" style="float:left">
<!-- A bunch of content here -->
</div>