Entity
Entity

Reputation: 8222

Dynamically resizing div

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?

Upvotes: 0

Views: 1657

Answers (3)

jcomeau_ictx
jcomeau_ictx

Reputation: 38492

It should by default. Use Firefox with the Firebug extension, or Google-chrome, to debug dynamic pages, using the right-click "inspect element" feature.

Upvotes: 0

Daniel A. White
Daniel A. White

Reputation: 191058

Your div id'd pageContent has a height.

Upvotes: 1

Mikhail
Mikhail

Reputation: 9007

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

Upvotes: 2

Related Questions