Menu not appearing in ipad (bootstrap)

My site built on bootstrap. When the nav collapses the toggle button doesn’t appear on an ipad - http://mobiletest.me/ipad_mini_emulator/#u=http://gloucesterweddingphotographer.com/

It doesn’t appear because the iPads screen is too big. Simple as that. You have the hamburger icon appear only on 767px and below.

Do I need to increase my breakpoint beyond 767px?

Hmm scratch that. I thought the menu was appearing by default. Give me a moment. 767 is the correct pixel value you should have. There’s something else going on. Apologies.

No bother its head wrecking - I thought ios issue but it works fine on an iphone.

I’d validate your dan-morris CSS file. Take care of that first. FYI, !important is done BEFORE any semi-colon. Let’s start there. Validate your file. The bootstraps are also pretty invalid but nothing major. So just do your own file.

The menu button is being pulled off screen on iPad by this rule (line 820, dan-morris.css):

@media only screen and (max-width : 770px) {
    .navbar-toggle {
        margin-top: -80px;
        !important
    }
}

If you just remove it, the problem goes away. That said, if it is native Bootcrap code, you aren’t meant to meddle with that, so perhaps you should override it with your own code … although the !important makes that rather difficult.

1 Like

Thanks all - @ralphm I added this in as the ‘hamburger’ icon was all over the place but I need it for Ipads so i’ll have to think of another hack… RWD is hard at times!!!
For android devices the icon is now too far down the page - http://mobiletest.me/google_nexus_7_emulator/#u=http://gloucesterweddingphotographer.com/

Well remove that margin and we can work towards WHY it is displaying poorly from there :slight_smile:

Perhaps try to position it in a more bulletproof way. I just added this (last 3 lines) at line 697 and it works better, though I can only test on iPad:

.navbar-toggle {
        display: block;
	position: absolute;
	right: 0;
	top: 0;
    }

Thanks but it keeps the toggle icon on even when the full nav is visible.

OK, instead of that, try adding this to the bottom of dan-morris.css:

@media (max-width: 768px) {
    .navbar-toggle {
      display: block;
      position: absolute;
      right: 0;
      top: 0;	
      float: none;
    }
}

Needs to be top: -70px; for devices except ios… the problem seems to be the logo.

With the menu button set to position: absolute, it shouldn’t be affected by other elements.

Don’t give any specific device settings. Make something universal and let US figure out what is causing the hiccups please. Ralph is right though.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.