Is there a way to find out the width and height of the follow image with Jquery?
<div id="imgBox"><img id="imgID" src="images/koala.gif" /></div>
Then pass it into CSS?
<style type="text/css">
#imgBox, #imgBox img { width:imageWidth; height:imageHeight }
</style>
I'm guessing...
<script type="text/javascript">
$(document).ready(function(){
var imageWidth = $("#imgBox").width();
var imgHeight = $("#imgID").height();
});
</script>