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 6162737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:42:17+00:00 2026-05-23T21:42:17+00:00

I have a div inside another div which has a fixed position at the

  • 0

I have a div inside another div which has a fixed position at the bottom of the page. I need the outer div to scroll all the way past the inner div allowing all the content to be shown.

.outer{position:relative; }
.inner{position:fixed; bottom:0; z-index:999;}

<div class="outer">
  <p>Lots of content......</p>
    <div class="inner">
      <p>More content fixed in a box at the bottom of the page.....</p>
    </div>
 <div>

Maybe this well help describe it better- http://jsfiddle.net/winchendonsprings/dDgjQ/2/
What I need in this example is the yellow text to scroll all the way to the top of the red box.

  • 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-05-23T21:42:18+00:00Added an answer on May 23, 2026 at 9:42 pm

    You just need to add some padding to the bottom of the div.outer and adjust as necessary for the size of the red div.

    In this instance, I did padding-bottom:100px;

    http://jsfiddle.net/jasongennaro/dDgjQ/3/

    EDIT

    To respond to your comment re div.inner not appearing on each page, you could do the following with jQuery:

    $('.inner').parent().css('paddingBottom','100px');

    Here it is applied:
    http://jsfiddle.net/jasongennaro/dDgjQ/4/

    And here it is with the div.inner removed:
    http://jsfiddle.net/jasongennaro/dDgjQ/5/

    EDIT 2

    You could also create another class and only add it to that page.

    http://jsfiddle.net/jasongennaro/dDgjQ/6/

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

Sidebar

Related Questions

I have a div inside another div. The outer div has a starting width
I have a relatively -positioned div, which has overflow: auto set. Inside that, I
I have an iFrame which has it's source set to another aspx page. The
I have a thumbnail image inside a div. I use another image as the
I have a div inside of a table which is inside of a form
I have a div that has it's opacity set to 60. Inside the div,
I have a div container inside which there are several child divs with css
I have a thumb nail inside another div, when the thumbnail is hovered I
I have a div with a background image which is aligned bottom right. Then
I have a parent div id=A which has a width of 100%. I want

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.