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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:36:02+00:00 2026-05-28T18:36:02+00:00

I want to format the posts on a blog to have stacking ‘title divs’

  • 0

I want to format the posts on a blog to have stacking ‘title divs’ when the user scrolls down the page. The only way for me to explain this was to make a little demo by cheating and using z-index all over the place to simulate how it’s supposed to look.

I want to recreate this effect but make it applicable to posts on a blog. Is this possible?

EDIT: Trying to find a way to create this effect using javascript.

Here’s the current css:

body {
    margin: 0;
    padding: 0;
}

h2, h3, p {
    padding: 0px;
    margin: 0px;
}

#container {
    position: relative;
    width: 360px;
    margin: 0px auto;
}

#header {
    position: fixed;
    top: 0px;
    width: 360px;
    height: 60px;
    background: #fff;
    z-index: 10;
}

#right_column {
    width: 360px;
    margin: 60px 0px 0px 0px;
}

    #right_column .first_title {
        position: relative;
        margin: 0px;
        font-size:32px;
        line-height: 30px;
        z-index: 9;
        background: #fff;
    }

    #right_column .first_fixed {
        position: fixed;
        top: 60px;
        z-index:6;
        width: 360px;
        background: #eee;
        border-top: #999 1px solid;
    }

    #right_column .first {
        position: relative;
        z-index: 5;
        background: #fff;
    }

    #right_column .second_title {
        position: relative;
        margin: 0px;
        font-size:32px;
        line-height: 30px;
        z-index: 5;
        background: #fff;
    }

    #right_column .second_fixed {
        width: 360px;
        position: fixed;
        top: 80px;
        z-index: 3;
        border-top: #999 1px solid;
        background: #eee;
    }

    #right-column .second {
        position: relative;
        z-index: 2;
    }

Here’s the markup:

    <h2 class="first_title">This is the article title.</h2>
        <h3 class="first_fixed">This is the article title.</h3>
                 <p class="first">This is some text.</p>
    <h2 class="second_title">This is the article title.</h2>
        <h3 class="second_fixed">This is the article title.</h3>
                <p class="second">This is some text.</p>
  • 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-28T18:36:02+00:00Added an answer on May 28, 2026 at 6:36 pm

    I’m not sure what you are asking for .. I suppose you are trying to have an alternative to the one you already found. In this case you might want to have a look at the jQuery waypoints plugin in this example .. you define markers which trigger events when you scroll the page.
    Here its main page

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

Sidebar

Related Questions

I have a page on wordpress where i want to display 10 random posts.
i want to format date to string in hql select, for example i have
I have a template in word (.docx) format and want to replace some placeholders
I have a Posts table in my Rails 3.0.10 app. I want to give
I have an XML containing blog posts. Each post contains a date node. I
Hi I have a user input form which takes date in 2011-05-12 format. I
Hello I want to Create a home page that has updating blog entries. So
I have created a blog, it will have posts, and the posts are created
i want to query blog posts from the database created in the last 3
I want to format an int as a currency in C#, but with no

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.