Skip to content

Commit

Permalink
class-16-base-code-flex
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaii committed Jun 3, 2024
1 parent f66f5cf commit c63aa24
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
19 changes: 19 additions & 0 deletions class-16-flex-box/class-code/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>flexbox finally!!</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<div class="pbox">
<div id="id1" class="box">box1</div>
<div id="id2" class="box">box2</div>
<div id="id3" class="box">box3</div>
<div id="id4" class="box">box4</div>
</div>

</body>
</html>
31 changes: 31 additions & 0 deletions class-16-flex-box/class-code/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.pbox{
border: 2px solid black;
background-color: burlywood;

}

.box{
border: 2px dotted brown;
width: 100px;
height: 20%;
padding: 2px;
margin: 10px;
}



#id1{
background-color: red;
}

#id2{
background-color: orange;
}

#id3{
background-color: blue;
}

#id4{
background-color: thistle;
}

0 comments on commit c63aa24

Please sign in to comment.