반응형
레이어를 뛰우다 보면 해상도에 따라 (또는 센터 정렬인 페이지) 레이어 위치 조절이 안될때가 있다. 그럴때 사용할 많한 간단한 팁이다.
<div style="position:relative;left:-100px;top:-150px;">
<div id="layer1" style="width:100px; height:100px; position:absolute; left:689px; top:238px; z-index:-1;">레이어 내용</div>
</div>
부모 레이어위 position 은 relative 로 설정하고
자식 레이어를 배치 시킨다. 자식 레이어의 position 은 absolute 로 설정
left, top px 값은 화면에 맞춰 조절해 준다.
반응형