I am encountering an issue when loading an HTML file into a content div after clicking on a menu bar option. The HTML file contains 5 tables, but the div only displays the first 5 lines of the first table before requiring a scroll bar to view the rest of the tables. I would like to be able to see all the tables in a single view without needing a scroll bar unless the information exceeds the screen size. Any suggestions or solutions would be greatly appreciated. I have already attempted setting the width and height of the div to 100%, but this did not solve the problem. When viewing the table HTML alone, it appears correctly as intended.
Thank you for any assistance.
function load_codes() {
document.getElementById("content").innerHTML = '<object type="text/html" data="codes2.html" ></object>';
}
function load_mrgsql() {
document.getElementById("content").innerHTML = '<object type="text/html" data="mergesqlcode.html" ></object>';
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="sidebar">
<h2>Sidebar</h2>
<p>Open Merge Analysis WorkBook</p>
...
</div>
... HTML with Tables (only 2 shown) ...