Modul background color doesn't show correct

  • Roke
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 7 months ago #8479 by Roke
Hi,
I have a problem with the left and right columne. In some browsers the background color is only visible till the end of the moduls. Opera and IE are working fine, but FF and Crome are not.
Here is the link:
sungaistyle.com/
Thanks
Roger

Please Log in to join the conversation.

More
13 years 7 months ago #8490 by ivan.milic
Hi ,

open index.php of template

Find this:
<script type=text/javascript>
jQuery(document).ready(function(){
var left_height = jQuery("#content_main").innerHeight();
jQuery("#column_left").css({height: left_height});
/*FIX*/if(jQuery.browser.msie && jQuery.browser.version <= 7) jQuery("#column_left").css('margin-bottom',-20);
});
</script>


and replace it with this:

<script type=text/javascript>
window.load = function(){
var left_height = jQuery("#content_main").innerHeight();
jQuery("#column_left").css({height: left_height});
/*FIX*/if(jQuery.browser.msie && jQuery.browser.version <= 7) jQuery("#column_left").css('margin-bottom',-20);
};
</script>

Please Log in to join the conversation.

  • Roke
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 7 months ago #8515 by Roke
Hi,
thanks for the script. I replaced it and now all browsers cut off the background color. I'd like to have the background color for the whole left columne like it used to be before in IE and Opera.
Thanks
Roger

Please Log in to join the conversation.

More
13 years 7 months ago #8523 by ivan.milic
Ok, my fault I put wrong function name window.load should be window.onload

New script:

<script type=text/javascript>
window.onload = function(){
var left_height = jQuery("#content_main").innerHeight();
jQuery("#column_left").css({height: left_height});
/*FIX*/if(jQuery.browser.msie && jQuery.browser.version <= 7) jQuery("#column_left").css('margin-bottom',-20);
};
</script>

Please Log in to join the conversation.

  • Roke
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 7 months ago #8527 by Roke
Hi Ivan,
thank you very much for the code. All browser are ok now, but Chrome still shows the background only till the end of the modules.
Any idea?
Thanks
Roger

Please Log in to join the conversation.

More
13 years 7 months ago #8528 by ivan.milic
Strange, I use chrome by default. I just checked now and it's ok. Maybe you need to refresh???

Please Log in to join the conversation.

Time to create page: 0.190 seconds
Powered by Kunena Forum