I'm trying to expand the height of a div element with the following code:
html:
<div id="expandbtn">more..</div>
<div id="portfolio"><div class="itemweb" title="lol" rel="#derp"><div class="thumb"><img src="images/items/skills.jpg" title="Skills" rel="#derp"/></div>
script:
$('#expandbtn').click(function(){
$('#portfolio').animate({height:'72px'}, 500);});
css:
#portfolio {
width:914px;
height:295px;
margin:0 0 0 -8px;
overflow:hidden;}
But it won't work. What am i doing wrong?