Skip to content
Draft
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
22 changes: 11 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="m-box">
<div class="s-box">
<div class="main">
<div class="big-box">
box1
<div class="box box-position1">
box2
</div>
<div class="box box-position2">
box3
</div>
</div>
<div class="s-box s-box-se">
box2
</div>
<div class="s-box s-box-th">
box4
</div>
<div>추가햇다 이부분</div>

</div>



</body>

</html>
37 changes: 22 additions & 15 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
.m-box {
border: 1px solid red;
width: 100%;
height: 100vh;
.main {
display: flex;

border: 1px solid black;
height: 100vh;
justify-content: flex-end;
align-items: end;
}

.s-box {
.big-box {
width: 400px;
height: 150px;
background-color: black;
color: white;
position: relative;
}
.box {
width: 100px;
height: 100px;
background-color: gray;
background-color: purple;
color: white;
}

.s-box-th {
.box-position1 {
position: absolute;
right: 7px;
top: 0px;
right: 0px;
}

.s-box-se {
.box-position2 {
position: absolute;
right: 117px;
}
bottom: 0px;
}