정적 위치 지정을 사용하면 요소가 위쪽, 아래쪽, 왼쪽 및 오른쪽 속성의 영향을 받지 않습니다. 이를 위해 position:static을 사용합니다.
예시
이제 예를 살펴보겠습니다 -
<!DOCTYPE html>
<html>
<head>
<style>
div.static {
position: static;
color: white;
background-color: orange;
border: 2px dashed blue;
}
</style>
</head>
<body>
<h2>Demo Heading</h2>
<p>This is demo text.</p>
<p>This is demo text.</p>
<div class="static">
position: static;
</div>
<p>This is another demo text.</p>
</body>
</html> 출력
