Match Div height - width JQuery
andrew pougher
HTML
<div id="firstbox"></div>
CSS
#firstbox{width:230px;
height:238px;
margin:25px;
padding:20px;
border:2px solid #666;}
div {margin:3px;}
JavaScript
// get a box to match the size of the other
$(function() {
var w = $('#firstbox').width();
var h= $('#firstbox').height();
alert(w)
alert(h)
});