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 following HTML: <div class=olympics style=display: block; position: absolute; left: 250px; top: px;>
I have a html tag with inline CSS style like: <body><div style="position:absolute;top:100px;"></body> and I
The floating element has following structure: <a>The_button</a> <div style=position:absolute> <div style=position:relative class=inner-box> Content Content
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 a Div layer like this ... <style type=text/css> <!-- #newImg { position:absolute;
I have something like this currently: <div class = className style = position: absolute;
I have this JSF page: <div id=settingsdiv style=width:350px; height:400px; position:absolute; background-color:r; top:20px; left:1px> <h:form>
I've got a little problem. I have multiple relative positioned DIVs in an absolute

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.