위치:고정, 속성을 사용하면 뷰포트를 기준으로 요소를 배치할 수 있습니다. CSS 위치를 구현하기 위해 다음 코드를 실행할 수 있습니다. fixed;
예시
<!DOCTYPE html>
<html>
<head>
<style>
div{
position: fixed;
bottom: 0;
right: 0;
width: 200px;
border: 3px solid blue;
}
</style>
</head>
<body>
<h2>position: fixed;</h2>
<p>The position: fixed; property allows you to position element relative to the viewport.</p>
<div>
div has position: fixed;
</div>
</body>
</html> 출력
