Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8765445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:17:03+00:00 2026-06-13T16:17:03+00:00

I am simply trying to slide the main container (and everything within it) out

  • 0

I am simply trying to slide the main container (and everything within it) out of the way to show a navigation menu beneath when you click the navigate button. When you click it again, the container div moves back over top the navigation menu. It’s UI that’s gotten popular on mobile designs.

Anyway, I have it working just fine in Firefox and IE. Unfortunately, the same cannot be said for Chrome.

http://jsfiddle.net/aXsWz/28/

$(document).ready(function() {

$('div#navNavigate').click(function(){
        $('div#navNavigateHide').show()
        $('div#navNavigate').hide()
        $('div#container').animate({'left':'+=120'});
});  

$('div#navNavigateHide').click(function(){
        $('div#navNavigate').show()
        $('div#navNavigateHide').hide()
        $('div#container').animate({'left':'-=120'});
    });
});  

So, the issue is that the “nav” and “container” divs aren’t moving together.

Any help appreciated. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:17:04+00:00Added an answer on June 13, 2026 at 4:17 pm

    Update::

    You have a fixed position rule on the navigation. If you change it to absolute, the animation will run properly:

    #nav {
      background:#222222;
      width:240px;
      height:45px;
      margin:0 auto;
      position:absolute;  <-- This was previously "fixed"
      top:0;
      z-index:10000;
    }
    

    Working example: http://jsfiddle.net/aXsWz/30/

    Take a look at this article to see the difference between fixed and absolute positioning: http://css-tricks.com/absolute-relative-fixed-positioining-how-do-they-differ/


    The problem is that you’ve nested your toggles inside of the container that gets moved around. If you refactor them to live outside of that container, it works just fine (although you can make quite a few improvements to this js pattern…).

    Working example: http://jsfiddle.net/aXsWz/29/

    <div id='nav'>
        <div id='navNavigate'>
        </div>
        <div id='navNavigateHide'>
        </div>
    </div>    
    
    <div id='container'></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a drop-down menu acting as the sub-menu of a main
I simply trying (in vain) to remove all instances of the word 'at' during
I'm simply trying to convert a CGEventTimestamp (which is an unsigned 64-bit integer roughly
I'm simply trying to crop a JPEG image (no scaling) using PHP. Here is
I am simply trying to draw a rectangle inside of a panel using flex4.
I am simply trying to display a users location on a map, I am
Ok, I'm very simply trying to take this example... http://jsfiddle.net/shanabus/HGF59/ and put it on
Trying to turn this: href=/wp-content/themes/tray/img/celebrity_photos/photo.jpg into: href=/img/celebrity_photos/photo.jpg So I'm simply trying to remove /wp-content/themes/tray/
This is quite frustrating. I am simply trying to create a dynamic text and
I have been trying to figure this out a while. I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.