13일차(2022.01.10 1시간58분)

roadzmoon76·2022년 1월 10일
0

매일 공부

목록 보기
14/217

코딩알려주는누나 chapther5 문제1

<body>
   <div class="container">
     <div class="box">
       div 1
     </div>
     <div class="box div2-location">
       div 2
     </div>
     <div class="box">
       div 3
     </div>
   </div>
  </body>
.container{
display: flex;
justify-content: space-between;
}

.box{
background-color: black;
height: 200px;
width: 200px;
color: white;
}

.div2-location{
margin-left: auto;
margin-right: 10px;
}

과제1

문제2

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>replit</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <div class="container">
      <div class="box">
        div 1
      </div>
      <div class="box center">
        div 2
      </div>
      <div class="box end">
        div 3
      </div>
    </div>
  </body>
</html>
.container{
  display: flex;
  justify-content: space-between;
  height: 300px;
}

.box{
  color: white;
  background-color: black;
  width: 100px;
  height: 100px;
}

.center{
  align-self: center;
}

.end{
  align-self: flex-end;
}

https://Chapter-5-munje2.roadzmoon76.repl.co

문제3

풀다가 자러감

profile
크론병걸린 자퇴생, 개발자되기

0개의 댓글