From 74ec99ac3a9b12e5dc706310b1f3097f55d064a8 Mon Sep 17 00:00:00 2001 From: bruna Date: Fri, 17 Oct 2025 15:45:29 +0200 Subject: [PATCH 1/2] Lab Ironhack news done --- index.html | 3 ++- styles/style.css | 57 ++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 57 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 1b8846b..7514473 100644 --- a/index.html +++ b/index.html @@ -20,6 +20,7 @@

Ironhack News

+
Article 1 Image @@ -37,7 +38,7 @@

Main Article

- +
Article 1 Image diff --git a/styles/style.css b/styles/style.css index 9571ab1..ad97fa2 100644 --- a/styles/style.css +++ b/styles/style.css @@ -80,11 +80,13 @@ header { list-style-type: none; width: 100%; display: flex; - justify-content: flex-start; + justify-content: space-between; } .navbar li { - width: 130px; + width: auto; + flex-grow: 1; + flex-shrink: 0; height: 40px; display: flex; align-items: center; @@ -177,3 +179,54 @@ header { } /* Write your CSS below */ + +.d-flex{ + display: flex; +} + +@media only screen and (max-width: 768px){ + .main-article{ + flex-direction: column; + align-items: center; + } + + .main-article .image, + .main-article .content { + width: 100%; + padding:0 5px; + } + + .main-article .image { + max-width: 100%; + margin-bottom: 10px; + } + + .articles-container { + justify-content: center; + padding: 10px; + } + + .article { + width: 100% !important; + margin-bottom: 20px; + box-sizing: border-box; + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + } + .article .btn { + width: fit-content; + } + .navbar { + flex-wrap: wrap; + align-items: center; + justify-content: center; + } + .navbar li { + width: 100%; + + } + + } + From 2354001ec85834ae2bec29877bc273f27780fa90 Mon Sep 17 00:00:00 2001 From: bruna Date: Fri, 17 Oct 2025 18:22:38 +0200 Subject: [PATCH 2/2] Ironhack CSS changed --- index.html | 1 + styles/style.css | 83 ++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 67 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 7514473..84c4d0e 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@

Ironhack News