로그인과 로그아웃 후 레이아웃의 컨텐츠부분이 좀 문제가 발생합니다 컨텐츠 부분에는 전혀 if라던지 문법이 전혀 들어가지않았습니다
로그인 전
로그인 후
컨텐츠부분이 이부분입니다..
<div style="width:1200px; margin:auto;">
<div>
<div style="float: left;">
<a href=""><img style="margin-left: auto; margin-right: auto; display: block;" src="http://s.nx.com/s2/game/arpiel/obt/common/img_logo.png"></a>
</div>
<div>
<!-- GNB -->
<nav class="gnb" id="gnb">
<ul>
<li loop="$GNB->list=>$key1,$val1" class="active"|cond="$val1['selected']">
<a href="{$val1['href']}" target="_blank"|cond="$val1['open_window']=='Y'">{$val1['link']}</a>
<ul id="sub_menu" cond="$val1['list']">
<li loop="$val1['list']=>$key2,$val2" class="active"|cond="$val2['selected']"><a href="{$val2['href']}" target="_blank"|cond="$val2['open_window']=='Y'">{$val2['link']}</a></li>
</ul>
</li>
</ul>
</nav>
<!-- /GNB -->
</div>
</div>
<!-- 미들 컨텐츠 -->
<div style="background:white;border: 1px solid #BDBDBD; margin-bottom: 100px;" >
<div>
<div style="float:left;">
<img src="http://img.danawa.com/cp_images/service/79/3060286/151126-risell-pp006.jpg" width="800" height="400">
</div>
<div style="float: left; width:398px;">
<!--@if($layout_info->layout_gamestart)-->
<img class="zbxe_widget_output" widget="G_login_info" skin="Game_login" colorset="default" widget_cache="0m" ncenter_use="yes" />
<!--@else-->
<!--@end-->
</div>
<!--플로트 해제-->
<div style="clear:both;"></div>
</div>
<!--메인 컨텐츠 -->
<div style="width:1100px; background-color:white; margin:auto;">
{$content}
</div>
</div>
</div>
<div>
<div style="float: left;">
<a href=""><img style="margin-left: auto; margin-right: auto; display: block;" src="http://s.nx.com/s2/game/arpiel/obt/common/img_logo.png"></a>
</div>
<div>
<!-- GNB -->
<nav class="gnb" id="gnb">
<ul>
<li loop="$GNB->list=>$key1,$val1" class="active"|cond="$val1['selected']">
<a href="{$val1['href']}" target="_blank"|cond="$val1['open_window']=='Y'">{$val1['link']}</a>
<ul id="sub_menu" cond="$val1['list']">
<li loop="$val1['list']=>$key2,$val2" class="active"|cond="$val2['selected']"><a href="{$val2['href']}" target="_blank"|cond="$val2['open_window']=='Y'">{$val2['link']}</a></li>
</ul>
</li>
</ul>
</nav>
<!-- /GNB -->
</div>
</div>
<!-- 미들 컨텐츠 -->
<div style="background:white;border: 1px solid #BDBDBD; margin-bottom: 100px;" >
<div>
<div style="float:left;">
<img src="http://img.danawa.com/cp_images/service/79/3060286/151126-risell-pp006.jpg" width="800" height="400">
</div>
<div style="float: left; width:398px;">
<!--@if($layout_info->layout_gamestart)-->
<img class="zbxe_widget_output" widget="G_login_info" skin="Game_login" colorset="default" widget_cache="0m" ncenter_use="yes" />
<!--@else-->
<!--@end-->
</div>
<!--플로트 해제-->
<div style="clear:both;"></div>
</div>
<!--메인 컨텐츠 -->
<div style="width:1100px; background-color:white; margin:auto;">
{$content}
</div>
</div>
</div>
네비
Lv. 3
댓글 10
어딘가 div가 덜 닫히거나 float이 문제가 되는 것 같은데요.
열고 닫힌 것이 확실한 가장 안쪽의 요소들을 지워가면서 확인해보세요.
스샷으로는 원하는 모습이 상상이 안가네요.
http://spm.gtz.kr/index.php?mid=test 입니다 테스트 아이디 test / test123 인데 비회원 로그인에는 로그인 비로그인 둘다 같은현상입니다 관리자로 로그인시 페이시 수정버튼때문에 제대로 적용되는것같습니다 만드는 장소가 여의치않아 이미지등을 대용으로 대보면서 만들고있어서... 이미지들이 좀 이상할수있습니다 ㅎ..
{$content}에 보여지는 것 같네요.
이거에 float:left가 들어가 잇는데 그게 안 닫혀서 그런 것 같아요.
상자위젯을 만들어서 영역을 확보하고 그 안에 로그인 위젯을 넣어보세요.
심지어는 로그인 후에는 정상적으로 담기는데 로그인 전에만 저런다는건 로그인 위젯의 조건문 안에 div가 하나 더 들어갔거나 빠져있을 가능성이 있습니다.
float:left를 사용하면 컨텐츠 부분 div가 제대로 높이조절이 잘됩니다!