[CSS] 좌우 배열하기

codeing999·2023년 1월 11일
0

HTML/CSS

목록 보기
1/1
<style>
     .box1 {
          float:left; 
          width:200px; 
          height:100px; 
          background-color:#234234;}
          
     .box2 {
          display:inline-block; 
          width:200px; 
          height:100px; 
          background-color:#666666; 
          margin-left:10px;}  
</style>



<body>
     <div class="box1"></div>
     <div class="box2"></div>
</body>

출처 : https://woodstar.tistory.com/52

profile
코딩 공부 ing..

0개의 댓글