Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions 1번 과제/1.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@
}
.circle-container {
background-color: beige;
/* 코드 작성 */
display: grid;
grid-template-columns: repeat(3,33%);
grid-template-rows: repeat(3,33%);
gap:10px;
}
.circle {
display:flex;
justify-content: center;
align-items: center;
border-radius: 50%;
background-color: burlywood;
width: 30vw;
height: 30vw;
margin-top: 1vw;
font-weight: bold;
font-size: 50px;
/* 코드 작성 */
}
18 changes: 9 additions & 9 deletions 1번 과제/1.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
</head>
<body>
<div class="circle-container">
<div class="circle">1</div>
<div class="circle">2</div>
<div class="circle">3</div>
<div class="circle">4</div>
<div class="circle">5</div>
<div class="circle">6</div>
<div class="circle">7</div>
<div class="circle">8</div>
<div class="circle">9</div>
<div class="circle" style="background-color:red;">1</div>
<div class="circle" style="background-color:orange;">2</div>
<div class="circle" style="background-color:yellow;">3</div>
<div class="circle" style="background-color:green;">4</div>
<div class="circle" style="background-color:blue;">5</div>
<div class="circle" style="background-color:navy;">6</div>
<div class="circle" style="background-color:purple;">7</div>
<div class="circle" style="background-color:gray;">8</div>
<div class="circle" style="background-color:aqua;">9</div>
</div>
</body>
</html>
7 changes: 4 additions & 3 deletions 2번 과제/2.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ body {
.container {
height: 100%;
display: flex;
flex-direction: column;
/* 코드 작성 */
flex-direction: row-reverse;
}

.box {
Expand All @@ -20,18 +19,20 @@ body {
display: flex;
justify-content: center;
align-items: center;
/* 코드 작성 */
}

.box-1 {
flex:1;
background-color: rgb(248, 223, 227);
}

.box-2 {
flex:2;
background-color: rgb(247, 194, 202);
}

.box-3 {
flex:1;
background-color: rgb(246, 142, 158);
}

53 changes: 32 additions & 21 deletions 3번 과제/3.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,36 @@
/* 아래 코드를 수정해주세요!! 수업 때 배운 grid를 최대한 활용해주세요 */

#wrapper {
width: 700px;
}
.box {
padding: 15px;
color: #fff;
font-size: 20px;
font-weight: bold;
text-align: center;
}
width: 700px;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows:100px 300px;
}
.box {
padding: 15px;
color: #fff;
font-size: 20px;
font-weight: bold;
text-align: center;
}

.box1 {
background-color: #3689ff;
}
.box2 {
background-color: #00cf12;
}
.box3 {
background-color: #ff9019;
}
.box4 {
background-color: #ffd000;
}
.box1 {
grid-column: 1/3;
grid-row:1/2;
background-color: #3689ff;
}
.box2 {
grid-column: 1/2;
grid-row:2/3;
background-color: #00cf12;
}
.box3 {
grid-column: 3/4;
grid-row:1/2;
background-color: #ff9019;
}
.box4 {
grid-column: 3/4;
grid-row:2/3;
background-color: #ffd000;
}
2 changes: 0 additions & 2 deletions 3번 과제/3.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
<div id="wrapper">
<div class="box box1">box1</div>
<div class="box box2">box2</div>

<div class="box box3">box3</div>

<div class="box box4">box4</div>
</div>
</div>
Expand Down