From 192f3d8c3106011f60ab36798bdd030b3f034a4b Mon Sep 17 00:00:00 2001 From: Sitripi0 <216026207+Sitripi0@users.noreply.github.com> Date: Wed, 18 Jun 2025 00:27:36 +0200 Subject: [PATCH] practice for news channel --- styles/style.css | 108 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 102 insertions(+), 6 deletions(-) diff --git a/styles/style.css b/styles/style.css index 9571ab1..42b4747 100644 --- a/styles/style.css +++ b/styles/style.css @@ -4,12 +4,23 @@ 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; @@ -27,7 +38,7 @@ body, h1, h2, h3, h4, h5, h6, p, ol, ul { padding: 5px 8px; font-size: 14px; } - + /* STYLES */ /* Fonts */ @@ -175,5 +186,90 @@ header { .btn-blue { background-color: #007bff; } - + /* Write your CSS below */ +@media (max-width: 760px) { + .navbar { + display: flex; + flex-flow: column; + align-items: center; + + .li { + width: 100%; + } + } + + .main-article { + display: grid; + width: 100%; + + .image { + width: auto; + } + + .content { + width: 100%; + } + + } + + .articles-container { + display: grid; + width: 100%; + padding: 0%; + + .article { + width: 100%; + } + } +} + +@media (min-width:760px) and (max-width:1024px) { + + .navbar{ + display: flex; + justify-content: space-between; + width: 100%; + + .li { + display: left; + padding-left: ; + + } + } + + .main-article { + width: 100%; + + .image { + width: auto; + } + + .content { + width: 100%; + text-align: justify; + } + + } + + .articles-container{ + width: 100%; + display: flex ; + padding: 0%; + justify-content: space-between; + + + .article{ + flex-direction: column; + column-gap:; + width: 50%; + column-gap: 50%; + + + + } + + } + + +} \ No newline at end of file