function adjust_width() {
$('#cont').toggle(function(){
$('#cont').animate({marginLeft:'0%'});
},function(){
$('#cont').animate({marginLeft:'18.4%'});
});
}
The code above is intended to change the width of an element, but instead it appears to be impacting the display
attribute causing it to become: none. What could be causing this unexpected behavior?