html- div should be inside another div, but is messed up by the float commant?

Drew

New member
Here is what my html looks like:

<div id="layer">
<div class="section">content</div>
</div>

Section should be inside of layer (layer has a border, which is how I know whether or not it's inside or outside), but after I add "float: left" to the css, it ends up outside of layer.
 
Back
Top