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
9 changes: 6 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>
<!-- primer bloque -->
<header>
<h1 class="newspaper-name">Ironhack News</h1>
<nav>
Expand All @@ -18,7 +19,8 @@ <h1 class="newspaper-name">Ironhack News</h1>
</ul>
</nav>
</header>

<!-- primer bloque -->
<!-- segundo bloque -->
<main>
<article class="main-article">
<div class="image">
Expand All @@ -37,7 +39,8 @@ <h2>Main Article</h2>
<button class="btn btn-blue">Read more</button>
</div>
</article>

<!-- segundo bloque -->
<!-- tercer bloque -->
<section class="articles-container">
<article class="article">
<img src="images/article-1.jpg" alt="Article 1 Image" />
Expand Down Expand Up @@ -69,9 +72,9 @@ <h2>Article 3</h2>
<button class="btn btn-blue">Read more</button>
</article>
</section>
<!-- tercer bloque -->
</main>


<!-- DO NOT REMOVE - viewport width label -->
<span class="viewport-dimensions"></span>
<!-- DO NOT REMOVE - A simple JS script used to display the viewport width label -->
Expand Down
89 changes: 82 additions & 7 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,28 @@ html {
box-sizing: border-box;
font-size: 16px;
}

*, *:before, *:after {

*,
*:before,
*:after {
box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
margin: 0;
padding: 0;
font-weight: lighter;
}


/* DO NOT REMOVE - Styling for the label showing the viewport width */
.viewport-dimensions {
position: fixed;
Expand All @@ -27,7 +37,7 @@ body, h1, h2, h3, h4, h5, h6, p, ol, ul {
padding: 5px 8px;
font-size: 14px;
}

/* STYLES */

/* Fonts */
Expand Down Expand Up @@ -175,5 +185,70 @@ header {
.btn-blue {
background-color: #007bff;
}

/* Write your CSS below */



/* PRIMERA PARTE max-width: 760px*/
/* nav bar */
@media screen and (max-width: 760px) {
header {
display: flex;
flex-direction: column;
}
.navbar {
display: flex;
flex-direction: column;
align-items: center;
}

}
/* nav bar */

/* primer articulo */
@media screen and (max-width: 760px) {
.main-article {
display: flex;

flex-direction: column;
align-items: center;
}


/* primer articulo */

/* segundo articulo */
@media screen and (max-width: 760px) {
.articles-container {
display: flex;
flex-direction: column;
}
.article{
display: flex;

flex-direction: column;
}
}
/* segundo articulo */
/* PRIMERA PARTE max-width: 760px*/



/* SEGUNDA PARTE width > 760px and width < 1024px*/
@media screen and (min-width: 760px) and (max-width: 900px) {

header {
display: flex;
justify-content: center;
}
}

.articles-container{
display: flex;
flex-wrap: wrap-reverse;
}



/* SEGUNDA PARTE width > 760px and width < 1024px*/