Hi all,
Another problem.
This time it's with my column heights. I'm using some mootools code to make my main and right divs the same height.
This has worked fine right up until I embedded a video into an article.
The column is only growing as big as the right div content or the text in the main div. Whichever is longer.
Example here http://www.tsnet.co.uk/connect/typol...php/video.html
This is the code I'm using to make my divs the same height. (Not my code but a google search)
Code:
function equalHeights() {
var height = 0;
divs = $$('#main','#right');
divs.each( function(e){
if (e.offsetHeight > height){
height = e.offsetHeight;
}
});
divs.each( function(e){
e.setStyle( 'height', height + 'px' );
if (e.offsetHeight > height) {
e.setStyle( 'height', (height - (e.offsetHeight - height)) + 'px' );
}
});
}
and then calling the function at the end of my window.domready
(I'm open to hear of other methods to do this too)
Is this happening because the video is loading after the domready event?
Any ideas for a fix?
Thanks again!
Bookmarks