Skip to content

Commit

Permalink
nomadcoders#1.2 First Rule of Flexbox
Browse files Browse the repository at this point in the history
  • Loading branch information
serranoarevalo committed Feb 25, 2020
1 parent 8565ff3 commit 5122f38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
<title>(S)CSS Masterclass</title>
</head>
<body>
<div class="box">1</div>
<div class="box">2</div>
<div class="box">3</div>
<div class="wrapper">
<div class="box">1</div>
<div class="box">2</div>
<div class="box">3</div>
</div>
</body>
</html>
19 changes: 7 additions & 12 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
.box {
background: blue;
width: 300px;
height: 300px;
display: inline-block;
color: white;
}

.box:nth-child(2) {
margin-left: 35px;
.wrapper {
display: flex;
}

.box:nth-child(3) {
margin-left: 20px;
.box {
width: 200px;
height: 200px;
background: peru;
color: white;
}

0 comments on commit 5122f38

Please sign in to comment.