디스플라이 인라인이 안되요,, 정보
디스플라이 인라인이 안되요,,본문
<style type="text/css"> 
body { 
	margin:0 auto; 
	width:100%;background-color:orange; 
	background-image: url(); 
} 
.wrap{width:100%;margin:0 auto;} 
.main_wrap {width:100%;background-color:red; } 
 .main_wrap div{  } 
  
 .box3{background-color:pink; width:200px; height:800px; } 
 .box4{background-color:green; width:100px; height:800px;  } 
  
  
  
--> 
</style> 
<div class="wrap"> 
 <div class="main_wrap"> 
<!-- 왼쪽메뉴 -->   
 <div class="box3" >werwerwer</div>     
  
         
           
 <!-- 오른쪽메뉴 -->       
<div class="box4">  
  ewrwerwerwerwerwerwer 
   </div> 
</div></div> 
----- 
여기서요 
녹색박스가 자꾸 아래로 가여..display:inline써봐도 소용업어여,, 어떻게 하면 오른쪽으로 가게 할수있나요?  
                        
                추천
                
0 비추천
0
                
    0 비추천
0
댓글 4개
                
                    일단은 box3 옆으로 box4를 보낼려고 하면 box3의 위치를 먼저 잡아줘야 합니다.
box3 하고 box4 의 스타일에
float:left 또는 display:inline-block; 추가해주세요.
                    box3 하고 box4 의 스타일에
float:left 또는 display:inline-block; 추가해주세요.
                
                    위에 소스대로 하니 되네여 감사해여~~~~
아랫소스를 를 왼쪽에다가 넣으면 안되는데
.pre_board{ background-color:white; width:200px; height:300px; margin-top:0;}
<div class="pre_board">
<? echo latest("basic", "news",4, 50); // basic 스킨으로 free 라는 게시판을 출력합니다. ?>
<br><? echo latest("basic", "board",4, 50); // basic 스킨으로 free 라는 게시판을 출력합니다. ?>
</div>
녹색박스가 안내려가게 왼쪽박스에 넣을방법이 없는걸까요?????
                    아랫소스를 를 왼쪽에다가 넣으면 안되는데
.pre_board{ background-color:white; width:200px; height:300px; margin-top:0;}
<div class="pre_board">
<? echo latest("basic", "news",4, 50); // basic 스킨으로 free 라는 게시판을 출력합니다. ?>
<br><? echo latest("basic", "board",4, 50); // basic 스킨으로 free 라는 게시판을 출력합니다. ?>
</div>
녹색박스가 안내려가게 왼쪽박스에 넣을방법이 없는걸까요?????
                
                    box3 를 float:right; , box4 를 float:left;
해주시면됩니다.
                    해주시면됩니다.
                
                    <? echo latest("basic", "news",4, 50); // basic 스킨으로 free 라는 게시판을 출력합니다. ?> 
<br><? echo latest("basic", "board",4, 50); // basic 스킨으로 free 라는 게시판을 출력합니다. ?>
를 그냥 box3 이나 box 4에 넣어도 지 혼자 div로 생성이 되요... 이것 원인좀 알수있을까요??
                    <br><? echo latest("basic", "board",4, 50); // basic 스킨으로 free 라는 게시판을 출력합니다. ?>
를 그냥 box3 이나 box 4에 넣어도 지 혼자 div로 생성이 되요... 이것 원인좀 알수있을까요??