I don't know how to accomplish the following in html, I would prefer if the solution would be strictly html + css, javascript/jquery is being used on the site, but I don't prefer my layout to be dependant on javascript.
Section A is a list of indeterminate width, it gets populated from data from a database so it could be from 9em-15em width. Section B has text that overflows as well. I want A to take up the required width to display its content and then I want Section B to take up the rest of the width.
Is this possible, if so how? Do you know of any good books that can give me a good foundation for html+css
---------------------------------------------
| |^| |^|
| | | | |
| | | | |
| | | | |
| A | | B | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| |v| |v|
----------------------------------------------
This is what I currently have, but if Section B overflows then it forces "A" list to shrink by making the divs to go to two lines which is unacceptable.
<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>