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
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<header>
<h1 class="newspaper-name">Ironhack News</h1>
<nav>
<img id="menu-icon" src="images/menu-icon.png" alt="Menu Icon Image" />
<ul class="navbar">
<li><a href="#">Home</a></li>
<li><a href="#">News</a></li>
Expand All @@ -22,7 +23,7 @@ <h1 class="newspaper-name">Ironhack News</h1>
<main>
<article class="main-article">
<div class="image">
<img src="/images/main-article.jpg" alt="Article 1 Image" />
<img src="images/main-article.jpg" alt="Article 1 Image" />
</div>
<div class="content">
<h2>Main Article</h2>
Expand Down
56 changes: 56 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,59 @@ header {
}

/* Write your CSS below */
#menu-icon {
display: none;
}

@media screen and (max-width: 760px) {
.navbar {
flex-direction: column;
align-items: center;
}
.navbar li {
border-right: none;
border-bottom: 1px solid #ffffff;
width: 100%;
}
.main-article {
flex-direction: column;
align-items: center;

}
.article {
width: 100%;
padding: 20px;
border: 1px solid #ccc;
margin-bottom: 20px;
}
.main-article .content {
width: 100%;
text-align: left;
}
.main-article .image {
width: 100%;
}
}

@media screen and (min-width: 761px) and (max-width: 1024px) {
.navbar{
justify-content: center;
}
.navbar li {
width: 100%;
}
.article{
width: 45%;
margin: 10px 5px;
}
}
@media screen and (max-width: 480px) {
#menu-icon {
display: flex;
margin: auto;

}
.navbar {
display: none;
}
}