Skip to main content
higgsyd
Inspiring
Sep 9, 2026 9:44 AM UTC
Answered

why does my menu overlay the page conrent

higgsy.com

on this page is my new menu but when opened it overlays the content.  Do I just move all the content to the right or is there a better way to fix it? many thanks in advance, David

    Ben MCorrect answer
    Community Expert
    Sep 9, 2026 11:58 AM UTC

    In short, your menu doesn’t have a z-index so it’s just showing behind your content. Adding a z-index would fix that. And your content has a float which is why it overlaps the red outline of your header. If you remove the float it ends up within that frame because the float is not really necessary here.

    Although I will say your site is not mobile friendly and despite these two minor adjustments, your page could use a refresh in its code/layout to be more modern and responsive for your visitors so it renders properly on all devices. Have you considered a bigger update to your layout?

    5 replies

    Participating Frequently
    Oct 1, 2026 12:08 PM UTC

    One more thing worth knowing for next time: z-index only takes effect on positioned elements, so make sure the menu itself has a position value such as relative, absolute, fixed, or sticky. Without that, even a high z-index will not change the stacking order. If the menu is fixed or sticky, it also comes out of the normal document flow, so adding top padding to your content wrapper roughly equal to the menu's height will stop the very top of the page sitting underneath the menu. And I agree with Ben about responsiveness: resizing the page in the browser's device toolbar while you work will save a lot of surprises later on.

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Sep 9, 2026 9:43 PM UTC

    Rebuild the site with a responsive framework like Bootstrap.

    Or consider WordPress with family tree plugins. It might make this a lot simpler for you & more interactive for your users.

    https://wordpress.org/plugins/tags/family-tree/

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    higgsyd
    higgsydAuthor
    Inspiring
    Sep 13, 2026 4:51 PM UTC

    many thanks for your advice - yes I agree the site is very poor but it was an early attempt.  I keep it around for old time sake. 

    Translate
    Ben MCommunity ExpertCorrect answer
    Community Expert
    Sep 9, 2026 11:58 AM UTC

    In short, your menu doesn’t have a z-index so it’s just showing behind your content. Adding a z-index would fix that. And your content has a float which is why it overlaps the red outline of your header. If you remove the float it ends up within that frame because the float is not really necessary here.

    Although I will say your site is not mobile friendly and despite these two minor adjustments, your page could use a refresh in its code/layout to be more modern and responsive for your visitors so it renders properly on all devices. Have you considered a bigger update to your layout?

    Translate
    higgsyd
    higgsydAuthor
    Inspiring
    Sep 13, 2026 4:51 PM UTC

    many thanks for your advice - yes I agree the site is very poor but it was an early attempt.  I keep it around for old time sake.  Your answer has let me use z-index and the menus are much better now

    Translate