I have a form within a containing div but the form displays outside the container:
<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>Checkboxes
    </title>
    <style>
        .tex-filter-div{
            float:left;
        }
        #tex-filter-form-container{
            border:1px solid black;
        }
    </style>
</head>
<body>
    <div id="tex-filter-form-container">
        <div id="filter-instructions"><p>To filter projects, click a heading and select a filter.</p></div>
        <div>
            <form>
                <div id="filter-div-project_category" class="tex-filter-div">
                    <div class="filter_category">
                        <h2 id="filter_category_heading_project_category" class="filter_category_heading">⟱ Filter by category
                        </h2>
                    </div>
                    <div class="filter_lists">
                        <div style="display: block;" id="selection_project_category" class="tex_filter_list">
                            <ul class="filter-checkbox-list">
                                <li class="filter-labels-list-element">
                                    <input class="tex-filter-checkbox-project_category" id="natural-resources" name="natural-resources" value="natural-resources" type="checkbox">
                                    <label class="filter-labels" for="natural-resources">Natural Resources
                                    </label>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div id="filter-div-project_location" class="tex-filter-div">
                    <div class="filter_category">
                        <h2 style="text-align: center;" id="filter_category_heading_project_location" class="filter_category_heading">⟱ Filter by location
                        </h2>
                    </div>
                    <div class="filter_lists">
                        <select id="selection_project_location" name="project_location" multiple="multiple" class="tex_filter_list">
                            <option class="tex-filter-option" value="boston">Boston
                            </option>
                            <option class="tex-filter-option" value="boulder">Boulder
                            </option>
                        </select>
                    </div>
                </div>
                <div id="filter-div-project_status" class="tex-filter-div">
                    <div class="filter_category">
                        <h2 id="filter_category_heading_project_status" class="filter_category_heading">⟱ Filter by status
                        </h2>
                    </div>
                    <div class="filter_lists">
                        <div style="display: block;" id="selection_project_status" class="tex_filter_list">
                            <ul class="filter-checkbox-list">
                                <li class="filter-labels-list-element">
                                    <input class="tex-filter-checkbox-project_status" id="complete" name="complete" value="complete" type="checkbox">
                                    <label class="filter-labels" for="complete">Complete
                                    </label>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </form></div>
    </div>
</body>
</html>The form is clearly inside of the containing div but displays completely outside of it. I'm not sure what could be wrong here.
 
     
    