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

  • SEARCH
  • Home
  • 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 9266499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:19:59+00:00 2026-06-18T14:19:59+00:00

The case I am making a single page website which uses One Page Navigation

  • 0

The case

I am making a single page website which uses One Page Navigation jQuery plugin for smooth scrolling. The content is grouped into three pages:

  1. home.html
  2. abilities.html
  3. portfolio.html

The idea is when a user is in home.html a jQuery function (js/pop4.js) loads the content of the other two pages in divs with the respective names:#abilities-wrapper and #portfolio-wrapper and vice versa when in abilities.html the script loads the other two pages in current page.

I am also using a jQuery script which adds possition:fixed,'top':0, 'left':0 to the menu after scrolling down and adding or removing .hidden class to two other divs.

The problem:

  • I want the divs to have a margin-top: 120 px. I set this in the css file

That is my css file:

#home-wrapper{
margin-top:120 px;
}
#abilities-wrapper{
margin-top:120 px;
}
#portfolio-wrapper{
margin-top:120 px;
}

This is what I get in Firebug:

#home-wrapper{   
}
#abilities-wrapper{   
}
#portfolio-wrapper{    
}

The whole code is a bit long so:you can see it here

  • 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-18T14:20:01+00:00Added an answer on June 18, 2026 at 2:20 pm

    Because you have a syntax error. Why you have white-space in between value and unit in which it is measured ? It should be like this:

    #home-wrapper{
    margin-top:120px;
    }
    #abilities-wrapper{
    margin-top:120px;
    }
    #portfolio-wrapper{
    margin-top:120px;
    }
    

    That margin-top property is not set as you have error in your code and hence, also not considered as a style of that div.

    Fiddle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several divs making up a single button on a menu. Using jQuery,
I have one single repository. Suppose I have LibraryX which I share across projects.
Case One: new Date(Date.parse(Jul 8, 2005)); Output: Fri Jul 08 2005 00:00:00 GMT-0700 (PST)
Case One Say you have a little class: class Point3D { private: float x,y,z;
Case with bootstrap: Example code function( $ ){ }( window.jQuery );
I am one step away from making the method described here: Targeting Android with
What I have is a model which has one of it's attributes dynamic. This
I created a model which contains a proxy to load a single record and
I'm making a very simple game application. The main form (Form1) has a single
I am making a generic text validation function with jQuery. I made the function

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.