Files
  • index.html
  • index.css
  • index.js
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>Effect of `position: relative` in the DOM Tree</title>
  <link href="index.css" rel="stylesheet">
</head>
<body>
  <div>
    <div>
      <div>
        <ul>
          <li>&hellip;</li>
          <li>&hellip;</li>
          <li>&hellip;</li>
          <li>&hellip;</li>
        </ul>
      </div>
    </div>
  </div>
  <script src="index.js"></script>
</body>
</html>
result
console