Eric Bourland
asked on
Chrome / Firefox column discrepancy
Need some more help with columns. =)
This page: http://test2.ebwebwork.com/pages/The-Book.cfm
In Firefox and MSIE, the right column looks good.
In Chrome, the content wanders past the end of the right column.
I wonder what is going on? Any ideas?
Thank you, friends.
Eric
This page: http://test2.ebwebwork.com/pages/The-Book.cfm
In Firefox and MSIE, the right column looks good.
In Chrome, the content wanders past the end of the right column.
I wonder what is going on? Any ideas?
Thank you, friends.
Eric
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The height is dynamically being added by the script at the bottom. A script obtained in the last question posted on this topic.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yep, that takes care of it.
Alternatively, set the min-height instead of the height - the functions will fire quicker (DOM ready) and expand automatically with content - WIN WIN :)
ASKER
Cathal's solution is working.
Chris, so instead of:
<script>
$(window).load(function() {
getmaxheight = Math.max($('.main-content' ).height() ,$('.sideb ar').heigh t());
$('.main-content').height( getmaxheig ht);
$('.sidebar').height(getma xheight);
})
</script>
I should try:
<script>
$(window).load(function() {
getmaxheight = Math.max($('.main-content' ).min-heig ht(),$('.s idebar').m in-height( ));
$('.main-content').height( getmaxheig ht);
$('.sidebar').height(getma xheight);
})
</script>
I find this very interesting. Thank you all for your ideas.
Eric
Chris, so instead of:
<script>
$(window).load(function() {
getmaxheight = Math.max($('.main-content'
$('.main-content').height(
$('.sidebar').height(getma
})
</script>
I should try:
<script>
$(window).load(function() {
getmaxheight = Math.max($('.main-content'
$('.main-content').height(
$('.sidebar').height(getma
})
</script>
I find this very interesting. Thank you all for your ideas.
Eric
$(function() {
getmaxheight = Math.max($('.main-content' ).height() ,$('.sideb ar').heigh t());
$('.main-content').css('mi n-height', getmaxheight);
$('.sidebar').css('min-hei ght', getmaxheight);
});
Problem with that is that the content will not extend to the same height as the sidebar or vise versa depending on which is longer.
getmaxheight = Math.max($('.main-content'
$('.main-content').css('mi
$('.sidebar').css('min-hei
});
Problem with that is that the content will not extend to the same height as the sidebar or vise versa depending on which is longer.
Tommy beat me to it - my solution was only working on the premise of changing the sidebar height - not both. You need all the images to load so you can accurately work out the height, so you need it on window.load rather than DOM Ready.
Gary nailed in this comment 39825096
Gary nailed in this comment 39825096
ASKER
It seems like Cathal's solution:
<script>
$(window).load(function() {
getmaxheight = Math.max($('.main-content' ).height() ,$('.sideb ar').heigh t());
$('.main-content').height( getmaxheig ht);
$('.sidebar').height(getma xheight);
})
</script>
is working really well. I am going to leave it at that. =) Unless someone has a strong feeling I should change it.
I really appreciate everyone's time and attention.
Eric
<script>
$(window).load(function() {
getmaxheight = Math.max($('.main-content'
$('.main-content').height(
$('.sidebar').height(getma
})
</script>
is working really well. I am going to leave it at that. =) Unless someone has a strong feeling I should change it.
I really appreciate everyone's time and attention.
Eric
ASKER
Thank you, Cathal, Chris, and Tom. =)
Eric
Eric