<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>CSS relative position</title>
</head>
<body>
  <h2>CSS absolute position</h2>
  <p>
    Lorem, ipsum dolor sit amet consectetur adipisicing elit. Labore, voluptatibus necessitatibus illum cum eveniet provident est suscipit nihil quis, numquam vero consequatur iure itaque sint veritatis ad voluptate sequi alias maiores, quas reiciendis totam magni! Veniam voluptate dolor consequuntur sint facere non?
  </p>
  <img src="https://i.ibb.co/KGgR3sd/CSS-position-EM.jpg" class="elon-musk" alt="CSS-position-EM">
  <p>
    Lorem, ipsum dolor sit amet consectetur adipisicing elit. Labore, voluptatibus necessitatibus illum cum eveniet provident est suscipit nihil quis, numquam vero consequatur iure itaque sint veritatis ad voluptate sequi alias maiores, quas reiciendis totam magni! Veniam voluptate dolor consequuntur sint facere non?
  </p>
</body>
</html>
*
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.elon-musk
{
  max-width: 150px;
  width: 100%;
  heaight: auto;
  border: 1px solid #000;
  border-radius: 4px;
  position: absolute;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.