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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:10:09+00:00 2026-05-21T04:10:09+00:00

I have an absolute positioned div in a relative positioned div . I want

  • 0

I have an absolute positioned div in a relative positioned div. I want the inner div to overflow on the x-axis, but not on the y-axis.

<html>
<head>
<style>
  #wrapper {
    width: 100px;
    height: 100px;
    background-color: blue;
    position: relative;
    overflow-y: hidden;
    overflow-x: visible;
  }

  #wrapper div {
    width: 50px;
    height: 50px;
    position: absolute;
    right: -25px;
    bottom: -25px;
    background-color: red;
  }
</style>
</head>
<body>
<div id="wrapper">
<div></div>
</div>
</body>
</html>

I get cropping or overflow with scrollbars in IE7, IE8, Firefox3, Chrome of the inner div on the x-axis which is not what I want.

I feel I must surely be doing something wrong. Is there a way to accomplish my requirements?

  • 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-21T04:10:10+00:00Added an answer on May 21, 2026 at 4:10 am

    What I was trying to do is not possible given html4 + css implementations at the time.
    I needed to use an alternative approach.

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

Sidebar

Related Questions

I have the following HTML: <div style=position:absolute;width:300px;background:yellow> <div style=position:relative;height:20px;width:150px;left:0; background:red;overflow:visible> this text should overflow
I have a html tag with inline CSS style like: <body><div style="position:absolute;top:100px;"></body> and I
what i have is this: <style> #main{position:relative; width:600px; height: 600px;} #cover{position:absolute} #image{position:absolute} </style> <div
i have a container div which is position:relative and the squares are position:absolute because
I have an IE6 absolute position div that I want to be full screen
I have a Div layer like this ... <style type=text/css> <!-- #newImg { position:absolute;
I have a relatively -positioned div, which has overflow: auto set. Inside that, I
I have two divs, one inner and one outer, but the inner div is
I have a container div, and it needs to be positioned as relative. Inside
I have a html layout done using absolutely positioned div elements and a backgroung

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.