From 2b96bf9eae3f21d17f7c0e43f9e2bbac92b5dcb6 Mon Sep 17 00:00:00 2001 From: MarcelloMartins Date: Tue, 11 Oct 2022 22:25:05 -0300 Subject: [PATCH] feat:made responsive middle cards --- index.html | 20 +------------------ styles/styles.css | 50 +++++++++++++++++++++-------------------------- 2 files changed, 23 insertions(+), 47 deletions(-) diff --git a/index.html b/index.html index 057c879..e8c9286 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - Document + M3academy
@@ -57,27 +57,9 @@
laptop 1 -
-
laptop 2
-
laptop 3 -
-
-
-
- laptop 2 -
-
- laptop 1 -
-
-
- laptop 3 -
-
- \ No newline at end of file diff --git a/styles/styles.css b/styles/styles.css index 3ba49b6..bf1b893 100644 --- a/styles/styles.css +++ b/styles/styles.css @@ -89,21 +89,23 @@ body { .midle-card-section { display: flex; - flex-direction: row; background: #E0E0E0; box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); margin-top: 80px; - justify-content: center; + align-items: center; gap: 40px; } + .midle-card { - + position: relative; + top: 32px; } .midle-card-div { - position: relative; - top: 62px; + display: flex; + align-items: center; + gap: 40px; max-width: 88.44%; } @@ -122,15 +124,6 @@ body { line-height: 24px; } -.midle-card-mobile-figure { - display: none; -} - -.midle-card-div-mobile2 { - display: none; -} - - @media screen and (max-width: 1024px) { .banner-1-desktop { display: none; @@ -167,22 +160,23 @@ body { width: 57.73%; } - .midle-card-mobile-figure { - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; - gap: 14px; + .midle-card-section { + flex-direction: column; + padding: 0 23px; + gap: 24px; } - .midle-card-mobile { - background: #E0E0E0; - } - - .midle-card-div-mobile2 { - display: flex; - } .midle-card-div { - display: none; + flex-direction: row-reverse; + gap: 14px; + justify-content: center; + } + + .midle-card-div img { + max-width: 54.2%; + } + + .midle-card-section > img { + max-width: 100%; } }