I'm attempting to edit my classes CSS (div.result) using the following...
$('.result').css('top', '55%');
however, it doesn't appear to be updating.. any ideas why? What am I doing wrong?
Below is the relevant CSS. The Javascript I'm using and the javascript which renders the div resides in cr.js.
HTML
<div id='cr' style='width:510px; height:440px; display:none; overflow:auto'>
<script src = "js/c.js"></script>
</div>
CSS
div.result {
position: absolute;
top: 20%;
}
topwon't work withstatic.resultposition: relativeorabsolute?.resultor the class itself? I don't think the second is possible, but also not necessary since the first has the same effectresultclass to the actual DIV?