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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:02:59+00:00 2026-05-18T03:02:59+00:00

http://jsfiddle.net/bSnaG/ In my mind the above example should look like a grey box with

  • 0

http://jsfiddle.net/bSnaG/

In my mind the above example should look like a grey box with #x not going past the edge and #y poking out the bottom.

But it’s not like that – apparently setting overflow-x: hidden; causes overflow-y: scroll | auto;.

Is there any way around this?
I need to allow certain elements to escape the bounding box without setting overflow: visible on #box.

  • 1 1 Answer
  • 1 View
  • 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-18T03:03:00+00:00Added an answer on May 18, 2026 at 3:03 am

    #y can’t break out of its bounding box without being taken out of the flow of the document. Does adding position: absolute; to #y give the effect you’re after?

    Update

    Restructured HTML example, including a containing box to allow everything to be easily positioned together. Try it out here: http://jsfiddle.net/GfNbp

    <div id="container">
        <div id="box">
            <div id="x"></div>
        </div>
        <div id="y"></div>
    </div>
    
    
    #box {
        width: 100px;
        height: 100px;
        margin: 10px;
        background: #ededed;
        padding: 10px;
    
        /* ADD THE OVERFLOW */
        overflow-x: hidden;
        overflow-y: visible;
    }
    
    #container{
        position: absolute;
        top: 30px;
        left: 20px;
    }
    
    #x {
        width: 150px;
        height: 10px;
        background: #c1ffb2;
    }
    
    #y {
        width: 10px;
        height: 150px;
        background: #c4b2ff;
        position: absolute;
        left: 20px; /* margin+padding */
        top: 30px; /* margin+padding+x-height */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://jsfiddle.net/KKL5G/ Please take a look at the above html and css for the buttons.
http://jsfiddle.net/gUckp/ In the above demo, I'd like to show an orange round image BELOW
http://jsfiddle.net/4hLnZ/ can someone figure out why my sub menus are not displaying above the
http://jsfiddle.net/zTTxu/ How can I animate once when page1 load example: animate 'a' to 'b'
http://jsfiddle.net/FS4zT/ If you visit the above link you see what am describing below. Summary:
http://jsfiddle.net/YaMhn/8/ ^^^^Take a look and see if you can help solve this Ok so
http://jsfiddle.net/fQv97/ HTML <div class=table-cell> My text, should be align middle </div> CSS .table-cell {
http://jsfiddle.net/zUAQC/11/ In this sample, In javascipt box's sampleDiv,I add the next input checkbox .
http://jsfiddle.net/9BCrs/2/ With respect to the above fiddle how could I use different links in
http://jsfiddle.net/367ms/1/ Please take a look at my code. So what I want to achieve

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.