I'm trying to toggle the width of a div with a button.
Desired effect would be clicking 'Big' makes the div width 100% and the button reads 'Small' to reduce the div back to 50%.
HTML
<div class="block">
block 50%
</div>
<button>Big</button>
CSS
.block {
background: green;
width: 50%;
height: 300px;
float: left;
display: block;
color: white;
}
button {
clear: both;
float: left;
margin-top: 30px;
}