How do I change the size of a div when I push a button. I have it so far where when you push the button the side menu go away but how do I make the content one fill the rest of the container?
Where is the code:
<?php
include 'lang/language.php';
?>
<html>
<head>
<title>Home | Gmod </title>
<link rel="stylesheet" href="styles/buttons.css">
<link rel="stylesheet" href="styles/main.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#hide").click(function(){
$("#navbar").hide(1500);
});
$("#show").click(function(){
$("#navbar").show();
});
});
</script>
</head>
<body>
<div id="container">
<div id="navbar">
<div class="logonav">
<font size="6"><a href="index.php">Gmod Tools</a></font>
</div>
<div id="divider">
Main Menu
</div>
<a href="http://testingwebsite.comuv.com/" class="contentmenubutton"><div id="hoverbar"></div><div class="textnav"><?php echo "$gmod_home"; ?></div></a>
<a href="http://testingwebsite.comuv.com/about.php" class="contentmenubutton"><div id="hoverbar"></div><div class="textnav"><?php echo "$gmod_about"; ?></div></a>
<a href="http://testingwebsite.comuv.com/tools.php" class="contentmenubutton"><div id="hoverbar"></div><div class="textnav"><?php echo "$gmod_tools"; ?></div></a>
<a href="http://testingwebsite.comuv.com/tools/index.php" class="contentmenubutton"><div id="hoverbar"></div><div class="textnav"><?php echo "$gmod_testing"; ?></div></a>
<button id="hide">Hide</button>
<button id="show">Show</button>
</div>
<div id="content">
<div id="footer">
<div class="copyrightnotice">
© gmodtools.com, 2015. All right reserved.
</div>
</div>
</div>
</div>
</body>
</html>