I'm working on my portfolio, and I'm making it all on one page, javascript based. My problem is, if I load in a different page, the div containing the content of the page doesn't resize.
http://portfolio.theadamgaskins.com/Portfolio/ Click "Death Worm" to see what开发者_开发知识库 I mean.
So, how do I make a div resize vertically to fit its content?
jQuery has nice tools to let you resize whatever you want: http://api.jquery.com/resize/
Although you don't explicitly set the #pageContent
height - I think whatever curvyCorners is - does
Your div
id'd pageContent
has a height.
It should by default. Use Firefox with the Firebug extension, or Google-chrome, to debug dynamic pages, using the right-click "inspect element" feature.
精彩评论