I have been striving to replicate this https://i.sstatic.net/B0Qkb.jpg desktop design.
The mobile version has already been crafted, but when I attempt to adapt it for desktop, I'm utilizing a specific flex property called row-reverse. However, the outcome turns out like this: https://i.sstatic.net/xTN9B.jpg
I am currently puzzled about how to adjust the positioning to match the desktop design and have been grappling with this issue for the past few days.
Could someone kindly enlighten me on what I might be doing wrong and provide guidance on resolving this problem?
@import url('css-reset.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lexend+Deca&display=swap');
:root {
--color-main-background: hsl(233, 47%, 7%);
--color-card-background: hsl(244, 38%, 16%);
--color-soft-voilet: hsl(277, 64%, 61%);
--color-white-main: hsl(0, 0%, 100%);
--color-white-paragraph: hsla(0, 0%, 100%, 0.75);
--color-white-stats: hsla(0, 0%, 100%, 0.6);
--font-weight-four: 400;
--font-weight-seven: 700;
}
body {
background-color: var(--color-main-background);
font-weight: var(--font-weight-four);
color: var(--color-white-main);
margin: 0;
}
.container {
display: grid;
grid-auto-flow: row;
border-radius: 10px;
justify-content: center;
text-align: center;
align-self: center;
max-width: 350px;
min-height: 750px;
margin-top: 30px;
margin-left: auto;
margin-right: auto;
background-color: var(--color-card-background);
overflow: hidden;
}
picture>* {
width: 100%;
max-height: 100%;
object-fit: cover;
...
</body></html>