Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #12143
    Kory
    Keymaster

    Florian,

    Could you be more specific on how it’s “not working” in Firefox? When I select your links, they do indeed scroll through the page as expected. However, since your header element is dynamically calculating its height via JavaScript, this will create errors on the page as you scroll down. You will need to use a set height on the container above your navigation and remove the JavaScript automatically calculating the height of this section as that is what is causing the error I’m noticing in Firefox.

    Thanks.

    #12192
    Florian C
    Participant

    In fact you’re,I tried without this script and i works, so how could I set device height for my container above the nav? (sorry I hope I’m not too boring…)

    #12193
    Florian C
    Participant

    *you’re right

    #12196
    Kory
    Keymaster

    Florian,

    This is unfortunately something that is unavoidable when trying to utilize JavaScript to set the height of a container. The only possible solutions are to either set no height on your element, or you will need to set the height of every element to 100% that surrounds your <div>. Do note that this can also cause issues when doing this, so you must be careful with this method. Ultimately, removing the height and just letting it be done automatically is your best bet.

    Thanks!

    #12233
    Florian C
    Participant

    I think I succeed! take a look if you can and tell me if you think if it’s allright please

    #12264
    Kory
    Keymaster

    Looks good to us, great job! 🙂

  • <script> jQuery(function($){ $("#no-reply-5197 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>