채택완료
즉, max-width:1200px; 바깥쪽으로 위치시키려면 어떻게 해야하나요?
section 부분이 max-width:1200px 으로 되어 있을 경우
section 안쪽에 있는 엘러먼트는 max-width:1200px; 안에 위치하게 되는데
<h1>~~~ 이 부분을 </h1> 만
자유롭게 위치하게 하고 싶으면 어떻게 해야 하나요?
즉, max-width:1200px; 바깥쪽으로 위치시키려면 어떻게 해야하나요?
감사합니다.
====================
<section>
<h1> 로고부분 <a><img src="<?php echo G5_THEME_URL;?>/html/image/top_logo.png" alt="로고" title="로고"></a></h1>
<div>메뉴 부분 </div>
<div>내용 부분 </div>
</section>
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
Copy
<section style="max-width:500px;height:500px;margin:0 auto;position:relative;border:5px solid #cc0000;">
<h1 style="position:absolute;right:-150px;width:100px;height:100px;background:#fff100;"> 로고부분 <a><img src="<?php echo G5_THEME_URL;?>/html/image/top_logo.png" alt="로고" title="로고"></a></h1>
<div>메뉴 부분 </div>
<div>내용 부분 </div>
</section>

답변을 작성하려면 로그인이 필요합니다.
로고 부분을 absolute 로 하고 섹션 기준으로 right 위치 값을 -마이너스로 주면 됩니다. (상하도 마찬가지)