Jump to content


Photo
- - - - -

Issue With "Fixed" Nav Bar On Mobile Devices

fixed nav css

  • Please log in to reply
29 replies to this topic

#1 mattpato

mattpato

    Advanced Member

  • Members

  • 41 posts
  • Country: Country Flag

Posted 24 May 2013 - 06:18 PM

Hi, 

I have been trying to fix this for a while now and have had no success. 

 

I have the fixed navigation bar activated on the site, however when you open up the site on a mobile for example on an iPhone and zoom in on the page, the "Fixed" nav is not fixed at all and ends up taking up 80% of the screen blocking the content. 

 

Here is my site:

Please Login or Register to see this Hidden Content

 

I have added no custom CSS to the fixed nav, so not sure what is going on. 

 

Please help, thanks in advance. 

Cheers, 
Matthew 

 

 



#2 James B

James B

    Advocate

  • Moderators
  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 24 May 2013 - 09:36 PM

Hi Matthew

 

The site seems to be set to responsive in the layout editor, the entire page is acting responsivly except for the div labelled 'my-add-image'. Has this been added as a hook? If so you'll need to make sure the media is added so it acts responsively (using a % width rather than a static px width) so it resizes with the screen. The navbar seems to be moving in line with the full width of the content, its the add above which is keeping the page at a larger size. 



#3 mattpato

mattpato

    Advanced Member

  • Members

  • 41 posts
  • Country: Country Flag

Posted 25 May 2013 - 08:12 AM

Sorry, that just confused me... could you explain to me again what I need to do? 



#4 mattpato

mattpato

    Advanced Member

  • Members

  • 41 posts
  • Country: Country Flag

Posted 25 May 2013 - 08:21 AM

I have added :

 

.top_ad{
width: 100%;
}
 

 

But the fixed nav is still not working right. 



#5 mattpato

mattpato

    Advanced Member

  • Members

  • 41 posts
  • Country: Country Flag

Posted 25 May 2013 - 08:28 AM

Even if the div labelled 'my-add-image' is removed the top fixed nav still does not work correctly. 



#6 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 25 May 2013 - 02:29 PM

Hi,

 

I just looked at your site on an Android (Samsung Galaxy SIII), and zoomed in and out.  The fixed nav did not occupy any more space than it should. So I suspect that it needs some browser specific CSS.   We have a free plugin for that called Browser Specific CSS found at Dashboard > PageLines > Store > Plugins > Top Free.

 

I did take note that after zooming back, the fixed nav bar did shift to the right, remaining there, but it did not block any content. The problem I noticed with that is simply that the navigation disappeared off the fixed nav.  This could be the result of some custom CSS or a plugin conflict.



#7 mattpato

mattpato

    Advanced Member

  • Members

  • 41 posts
  • Country: Country Flag

Posted 25 May 2013 - 04:09 PM

Thanks for the comments, I have just tested on an iPad and the fixed nav is perfect (zoomed and normal). It just seems to be iPhone?

 

What specific CSS do I need to add? 



#8 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 25 May 2013 - 04:18 PM

I think that's what Browser Specific CSS plugin tells you. Did you install it?

 

Here's the plugin page: 

Please Login or Register to see this Hidden Content



#9 mattpato

mattpato

    Advanced Member

  • Members

  • 41 posts
  • Country: Country Flag

Posted 25 May 2013 - 04:20 PM

Yeah I have it installed, but I can find what I need to know. To be honest I am not even sure what I am looking for. 



#10 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 25 May 2013 - 04:30 PM

I just remembered, we have a docs page! 

Please Login or Register to see this Hidden Content



#11 mattpato

mattpato

    Advanced Member

  • Members

  • 41 posts
  • Country: Country Flag

Posted 25 May 2013 - 04:38 PM

Thanks I found that, but what I am saying is that I am not sure what needs to be added to make the fixed nav stop doing this. We have figured out that it seems to be effecting the iPhone only, so it needs a .iphone css class adding but what needs adding before it? 



#12 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 25 May 2013 - 04:40 PM

Honestly, I have no idea.  Do you use Firebug for Firefox or Chrome's Inspection Tool? Either of those should point you to the element that needs a solution.



#13 mattpato

mattpato

    Advanced Member

  • Members

  • 41 posts
  • Country: Country Flag

Posted 25 May 2013 - 04:46 PM

Yes I have it and am using it, however still have no idea what CSS code is needed to prevent this. 



#14 mattpato

mattpato

    Advanced Member

  • Members

  • 41 posts
  • Country: Country Flag

Posted 25 May 2013 - 04:47 PM

Getting to the point now where the fixed nav is becoming more hassel than it is worth. What is the reason that it is doing this, have others had the same issue? 



#15 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 25 May 2013 - 04:50 PM

I haven't seen this issue come up before.  It could be a plugin conflict or a conflict with CSS (either custom or from a plugin).  It's very hard to tell.  I'd recommend deactivating your non-PageLines plugins, to see if the issue resolves.  Reactivate each, one at time, checking after each reactivation if the problem recurs. When it does, the last activated plugin is the problem.



#16 mattpato

mattpato

    Advanced Member

  • Members

  • 41 posts
  • Country: Country Flag

Posted 25 May 2013 - 04:56 PM

I have deactivated all plugins and it is still an issue... grrr. 



#17 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 25 May 2013 - 04:58 PM

I will alert our developers to see if they can identify the issue. Thanks for your patience.



#18 mattpato

mattpato

    Advanced Member

  • Members

  • 41 posts
  • Country: Country Flag

Posted 25 May 2013 - 05:00 PM

No worries, if you could please keep me in the loop and let me know where we are and if you need me to do anything. If you try to write a comment on a post the fixed nav drops down to the comment field and wont go away! 



#19 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 25 May 2013 - 05:03 PM

As soon as the developers have a chance to read through this thread, they'll either reply directly or answer me.  Either way, you'll be kept in the loop. Meanwhile, don't deactivate it, so they can see what it's doing.



#20 mattpato

mattpato

    Advanced Member

  • Members

  • 41 posts
  • Country: Country Flag

Posted 28 May 2013 - 04:42 PM

Thanks, have we managed to get anywhere with this yet?







Also tagged with one or more of these keywords: fixed nav, css