forked from M3-Academy/challenge-landing-page
feat:made responsive middle cards
This commit is contained in:
parent
9ed52108cf
commit
2b96bf9eae
20
index.html
20
index.html
@ -7,7 +7,7 @@
|
||||
|
||||
<link rel="stylesheet" href="./styles/styles.css">
|
||||
|
||||
<title>Document</title>
|
||||
<title>M3academy</title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@ -57,27 +57,9 @@
|
||||
<section class="midle-card-section">
|
||||
<div class="midle-card-div">
|
||||
<img class="midle-card" src="./assets/images/midle card 1.png" alt="laptop 1" />
|
||||
</div>
|
||||
<div class="midle-card-div">
|
||||
<img class="midle-card" src="./assets/images/midle card 2.png" alt="laptop 2" />
|
||||
</div>
|
||||
<div class="midle-card-div">
|
||||
<img class="midle-card" src="./assets/images/midel card 3.png" alt="laptop 3" />
|
||||
</div>
|
||||
</section>
|
||||
<section class="midle-card-mobile">
|
||||
<figure class="midle-card-mobile-figure">
|
||||
<div class="midle-card-div-mobile">
|
||||
<img src="./assets/images/midle card 2.png" alt="laptop 2">
|
||||
</div>
|
||||
<div class="midle-card-div-mobile">
|
||||
<img src="./assets/images/midle card 1.png" alt="laptop 1">
|
||||
</div>
|
||||
</figure>
|
||||
<div class="midle-card-div-mobile2">
|
||||
<img class= "laptop-image-mobile"src="./assets/images/midel card 3.png" alt="laptop 3">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -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%;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user