I dont understand why you have !important in your CSS if you hope to override it later. Remove the !important in your CSS height. CSS always prioritizes your HTML tag styles over CSS.
.myclass{
height:50px;
}
$('#divL3.myclass').css('height', '0px');
This is better for design.