Skip to content

stacking issue with float and position absolute #7828

Closed

Description

@paulrouget
<style>
  div {
    width: 100px;
    height: 100px;
  }

  #a {
    position: absolute;
    top: 20px;
    left: 20px;
    background: red;
  }

  #b {
    float: left;
    position: relative;
    background: green;
  }
</style>

<body>
  <div id="a"></div>
  <div id="b"></div>
</body>

screen shot 2015-10-02 at 11 47 10

Activity

  1. changed the title [-]stacking issue with float[/-] [+]stacking issue with float and position absolute[/+] on Oct 2, 2015
  2. mrobinson commented on Oct 5, 2015

    @mrobinson
    Member

    This could possibly be another issue with content being promoted to stacking contexts in order to get a layer.

  3. added 2 commits that reference this issue on Oct 5, 2015
    cb03245
    297184c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions