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 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
  • 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-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

I have this script: http://jsfiddle.net/NV2uV/ It works, but I do not like it. Cons:
code: http://jsfiddle.net/WRppV/4/ I should get something like content=> [141, [203, 206, 204, 205], 142,
http://jsfiddle.net/gUckp/ In the above demo, I'd like to show an orange round image BELOW
Take a look here: http://jsfiddle.net/ELKHq/ , now I would like to set up minimum
http://jsfiddle.net/aam7J/ How would I induce div-like behaviour on the input element? Specifically, how can
See http://jsfiddle.net/FDhQF/1/ for a trivial example. What's the difference between something being undefined and
http://jsfiddle.net/JeaffreyGilbert/VkghS/ Currently sorting between rows can be done by dragging barWrap (grey). To move
http://jsfiddle.net/aBaw6/2/ This demo does not add class when you hover a list item. What
http://jsfiddle.net/Zx836/ In the second box, notice how the arrow is in the same place.
http://jsfiddle.net/waitinforatrain/8AqgU/ The example in that link shows a nested ordered list. If you open

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.