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
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ <h2>Article 3</h2>
<!-- DO NOT REMOVE - A simple JS script used to display the viewport width label -->
<script src="javascript/width-label.js"></script>
</body>
</html>
</html>
70 changes: 70 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,73 @@ header {
}

/* Write your CSS below */

@media (width < 760px) {
.navbar {
flex-direction: column;
align-items: center;
border:#fff;
}

.navbar li {
width: 100%;
border-top: 1px solid #ffffff;
}

.main-article {
flex-direction: column;
}

.main-article .image,
.main-article .content {
width: 100%;
padding: 10px 0;
}

.articles-container {
flex-direction: column;
align-items: center;
}

.article {
width: 100%;
margin-bottom: 20px;
}
}

@media (min-width: 761px) and (max-width: 1023px) {
.navbar li {
width: auto;
flex: 1 1 0;
border-right: 1px solid #ffffff;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
}

.navbar li:last-child {
border-right: none;
}

.main-article {
flex-direction: column;
}

.main-article .image,
.main-article .content {
width: 100%;
padding: 10px 0;
}

.articles-container {
flex-direction: row;
justify-content: space-between;
align-items: center;
}

.article {
width: 48%;
margin-bottom: 20px;
}
}