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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:50:23+00:00 2026-05-20T22:50:23+00:00

<div id=parent style=overflow:hidden; position:relative;> <div id=child style=position:absolute;> </div> </div> I need to show child

  • 0
<div id="parent" style="overflow:hidden; position:relative;">
  <div id="child" style="position:absolute;">
  </div>
</div>

I need to show child element which is bigger than it’s parent element, but without removing overflow:hidden; is this possible?
parent element has position:relative;
child element gets stripped as soon as it’s out of it’s parents borders.

(elements have additional css defined I just put style attributes for clearness)

  • 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-20T22:50:23+00:00Added an answer on May 20, 2026 at 10:50 pm

    It’s completely impossible to do what you want with both overflow: hidden and position: relative on the parent div.. instead you can introduce an extra child div and move overflow: hidden to that.

    See: http://jsfiddle.net/thirtydot/TFTnU/

    HTML:

    <div id="parent">
        <div id="hideOverflow">
            <div style="width:1000px;background:#ccc">sdfsd</div>
        </div>
      <div id="child">overflow "visible"</div>
    </div>
    

    CSS:

    #parent {
        position:relative;
        background:red;
        width:100px;
        height:100px
    }
    #child {
        position:absolute;
        background:#f0f;
        width:300px;
        bottom: 0;
        left: 0
    }
    #hideOverflow {
        overflow: hidden
    }
    
    #parent {
      position: relative;
      background: red;
      width: 100px;
      height: 100px
    }
    
    #child {
      position: absolute;
      background: #f0f;
      width: 300px;
      bottom: 0;
      left: 0
    }
    
    #hideOverflow {
      overflow: hidden
    }
    <div id="parent">
      <div id="hideOverflow">
        <div style="width:1000px;background:#ccc">sdfsd</div>
      </div>
      <div id="child">overflow "visible"</div>
    </div>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two divs like so <div id=parent style=width:100px:overflow:hidden;> <div id=child> tooooooooooooooooooooo much content
I am display thumbnails on a div with overflow:hidden as its style attribute. When
let's suppose to have following code: <body style=overflow: hidden> <div class=wall> <button>New</button> <div class=prova>
I have two elements: 1. A parent of fixed height, overflow:hidden 2. Its child,
<div style=padding-top:5px; overflow:hidden; font-size:13px;> <div style=float:left;> <div style=background-color:blue; width:20px;> <input type=checkbox id=rememberme style=z-index:-1; />
I have a div of an aeroplane inside parent div with overflow: hidden ,
I have the following HTML and I need to get the first div parent
Consider my parent div is parentDiv and it contains five child divs <div id=parentDiv>
Here is my parent div, <div id=ResultsDiv class=resultsdiv> <br /> <span id=EmployeeName style=font-size:125%;font-weight:bolder;>Pandiyan</span> <span
i use a parent div with three child divs , <div id=parentDiv> <div id=PagerUp

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.