<span class="first">inline</span>
    <div class="second">non-positioned</div>
    <div class="third">positioned</div>


.first {
  display: inline;
  background-color: brown;
  margin-left: 20px;
  border: 4px solid #000;
}

.second {
  background-color: darkcyan;
  margin-top: -40px;
}

.third {
  background-color: darkblue;
  position: absolute;
  top: 170px;
  left: 100px;
}

body {
  color: aliceblue;
  font-size: 1.5rem;
  padding: 3rem;
}

div {
  width: 100px;
  height: 100px;
  padding: 50px;
  border: 4px solid #000;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.