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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:28:51+00:00 2026-06-08T23:28:51+00:00

I have a structure like this: <div class=a> <div class=b> <div> <div class=c> </div>

  • 0

I have a structure like this:

<div class="a">
  <div class="b">
    <div>
      <div class="c">
      </div>
    </div>
  </div>
</div>

CSS:

.a { position:relative; }
.b { position:absolute; }

I understand that defining top and left/right properties positions absolute div to either its parent with position:relative or to the browsers window if such a parent doesn’t exist. What I’m faced with, I cannot change the CSS for .a and .b. And I need .c to be on top of .a and slightly out of it. So that .a doesn’t get a scroll bar.

Some ASCII art to illustrate, I guess 🙂

I have:

-------------------
|   .a           |^|
|                | |<-- Scroll bar
|   ------       | |
|   | .c |       |*|
-------------------

I need:

--------------------
|   .a             |
|                  |<-- No scroll bar
|   ------         |
|   | .c |         |
----|    | ---------
    |    |
    ------
  • 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-08T23:28:53+00:00Added an answer on June 8, 2026 at 11:28 pm

    This solution will stack all items and the <div class="c"> will reach out of its parent container:

    .a {
      position: relative;
      width: 200px;
      height: 200px;
      border: 1px solid red;
      background: #eee;
    }
            
    .b {
      position: absolute;
      top: 20px;
      left: 20px;
      width: 200px;
      height: 200px;
      border: 1px solid blue;
      background: #ccc;
    }
            
    .c {
      position: absolute;
      bottom: -50px;
      left: 20px;
      width: 100px;
      height: 100px;
      border: 1px solid orange;
      background: #aaa;
    }
    <div class="a">
      <div class="b">
        <div>
          CONTENT
          <div class="c"></div>
        </div>
      </div>
    </div>

    Note that this will only work, if the parent container has overflow:visible. When one of the parents has overflow:hidden|scroll you can’t solve this, I guess.

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

Sidebar

Related Questions

I have a html structure like this : <div id=nav_holder style=position:absolute;border-radius:400px;width:0px;height:0px;background-color:#460203;z-index:350px;> <div id=inner_wrap> </div>
I have a nested ul menu structure that starts off like this: <div id=left>
Ok, I have a structure like this: <div class=image> <img src=img1.jpg alt= /> </div>
I have the following structure: <div class=feed-item style=position:relative; id=feed-611 onmouseover=showDelete() onmouseout=hideDelete()> <div class=feed-avatar> AVATAR
I have structure like this <div id=mali_oglasi> <p class=mali_oglas> <span class=name>Predaja7</span> <span class=body>Lorem ipsum
I am trying to use jQuery(#element-id).parent().addClass('some-class'); I have a structure something like this: <div
I have a structure like this: <div class=content> <div class=board></div> </div> then, here is
I have the html structure like this <div class=selected> <div class=selectedOption>September 2012</div> </div> <div
I usually have my structure laid out something like this: <div id=all> <div id=page>
I have structure like this. <ul class=gallerylist> <li> <image ...> <input ...> </li> <li>

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.