*The title should be “Help accomplishing dynamic effect” whoops.
Just grab the heights. Something like this should work
var headerHeight = $('.header').outerHeight(),
leftHeight = $('.left').outerHeight(),
totalHeight = headerHeight + leftHeight;
$('.sidebar').css('height', totalHeight+'px');
On a sidenote – how do I put line breaks into the code tag here!?
- Microlancer Beta Tester
- Author had a Free File of the Month
- Has been a member for 3-4 years
- Item was Featured
- Author was Featured
- Austria
- Exclusive Author
- Referred between 200 and 499 users
OllieMcCarthy said
Just grab the heights. Something like this should workvar headerHeight = $('.header').outerHeight(), leftHeight = $('.left').outerHeight(), totalHeight = headerHeight + leftHeight; $('.sidebar').css('height', totalHeight+'px');On a sidenote – how do I put line breaks into the code tag here!?
use pre instead of code
There is a specialized jquery plugin to accomplish this, called “equal heights”. Here is a link to the tutorial – http://www.cssnewbie.com/equalheights-jquery-plugin/
This might help: http://www.alistapart.com/articles/fauxcolumns/
- Author had a File in an Envato Bundle
- Sold between 250 000 and 1 000 000 dollars
- Author was Featured
- Item was Featured
- Contributed a Tutorial to a Tuts+ Site
- Exclusive Author
- Has been a member for 3-4 years
- India
unisphere said
This might help: http://www.alistapart.com/articles/fauxcolumns/
+1. Fauxcolumns is the best choice. The only drawback is that the background color will be through an image. You can not provide CSS BG color options.
OllieMcCarthy said
Just grab the heights. Something like this should workvar headerHeight = $('.header').outerHeight(), leftHeight = $('.left').outerHeight(), totalHeight = headerHeight + leftHeight; $('.sidebar').css('height', totalHeight+'px');On a sidenote – how do I put line breaks into the code tag here!?
Thanks Ollie, I think I will try doing it this way.
Will let you know if it works out. 

