I wanted the first container to be positioned in a fixed position when the scrollbar is opened. but when I apply position: fixed; in .one class style, the container below overlaps with the container above and the whole site looks distorted. How do I fix this problem?
<html>
<head>
<meta charset="utf-8">
<title>
exp1
</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css"></script>
<style>
.one{
position: fixed;
}
</style>
</head>
<body style="height: 200%;">
<div class="one">
<h1>hello</h1>
</div>
<div>
<h1>goodbye</h1>
</div>
</body>
</html>