스크롤바를 내려도 " 로고부터 상단 메뉴부분 " 까지 통째로... 상단에 고정시키게 하고 싶어서
이것을
#hd {z-index:4;position:relative;height:142px;min-width:970px;background:#0d0a06 ;}
↓
#hd {z-index:4;position:fixed;height:142px;min-width:970px;background:#0d0a06 ;margin:0 auto;}
이렇게 추가를 시켰는데요. 상단에 고정되어 붙어있기는한데, 가운데 정렬이 되질않네요. ㅠㅠ
어디를 수정해야 할까요? ...
상단 레이아웃
Copy
#hd {z-index:4;position:relative;height:142px;min-width:970px;background:#0d0a06 ;margin:0 auto;}.hd_zindex {z-index:10 !important}#hd_h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}#hd_wrapper {position:relative;margin:0 auto;padding:0;width:970px;height:100px;zoom:1}#hd_wrapper:after {display:block;visibility:hidden;clear:both;content:""} #logo {position:absolute; left:0px; top:32px;}
답변 4개
채택된 답변
+20 포인트
답변을 작성하려면 로그인이 필요합니다.