I’ve been trying in vain to set the height on a container. I’ve been mainly using this:
$rdc.height(rdc_height);
I have also tried these:
$rdc.height(300);
$rdc.css({height:300});
document.getElementById("RDC162").style.height = rdc_height + "px";
These work fine, however (so the problem isn’t with the $rdc):
$rdc.css({padding:20, maxHeight:80});
$rdc.hide();
Why can I not set the height on the element? It is position: relative if that makes any difference, although when I tested it didn’t seem to.
Maybe the element is not a block element.
Try this