When I nest a DIV I can make the inner DIV fit into the outer DIV which is the width of the browser and just have a scrollbar for the content in the inner DIV:
<body>
    <div style="width:100%; border: thick dotted blue">
        <div style="width:99%; overflow: auto; border: thick dotted green">
            ================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
        </div>
    </div>
</body>
When I try to do the same thing with a fieldset the DIV just goes off the page to the right despite the width: 100%. The only browser the code below works the way I want is in Internet Explorer. In Firefox and Chrome it is exceeding the width of the browser on me:
<body>
    <div style="width:100%;">
    <fieldset style="width:100%;">
        <legend>test</legend>
        <div style="width:100%;  overflow: auto;">
            ================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
        </div>
    </fieldset>
    </div>
</body>
How do I make the fieldset code act like the code up top and not have its content exceed the browser width?
 
    