Skip to content

Commit

Permalink
Delete the wrapper width setting so that nav and welcome fill the screen
Browse files Browse the repository at this point in the history
  • Loading branch information
yinxoxo committed Jun 18, 2024
1 parent 3d30e10 commit d18e3c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Week1/Assignment2/mediaqueries.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@media screen and (min-width: 800px) and (max-width: 1200px) {
@media screen and (min-width: 1200px) {
.grid-container {
max-width: 100%;
margin: 0 auto;
}
}

@media screen and (min-width: 500px) and (max-width: 800px) {
#desktop-nav {
display: none;
Expand Down
5 changes: 3 additions & 2 deletions Week1/Assignment2/style.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
body {
margin: 0;
padding: 0;
box-sizing: border-box;
}

#wrapper {
width: 1200px;
max-width: 100%;
margin: 0 auto;
}
Expand Down Expand Up @@ -50,10 +50,11 @@ nav {
}

.grid-container {
max-width: 1200px;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 20px;
margin: 0 40px;
margin: 0 20px 20px;
}

.grid-item {
Expand Down

0 comments on commit d18e3c3

Please sign in to comment.