ChillyWilly
KPCKevin Powell - Community
•Created by ChillyWilly on 4/4/2024 in #front-end
My website is not responsive as it's supposed to be
@media (max-width: 600px) {
body {
height: 100dvh;
width: 25rem;
margin: 0 auto;
}
.container {
display: grid;
width: 25rem;
}
.results {
width: 100%;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
7 replies
KPCKevin Powell - Community
•Created by ChillyWilly on 4/4/2024 in #front-end
My website is not responsive as it's supposed to be
body {
font-size: 1.125rem;
font-family: "Hanken Grotesk", sans-serif;
height: 100dvh;
display: grid;
place-items: center;
}
.container {
display: flex;
align-items: center;
justify-content: center;
padding-inline: 2rem;
background-color: red;
width: auto;
}
.results {
display: flex;
flex-direction: column;
justify-content: center;
background-image: linear-gradient(var(--bg-gradient--Light-slate-blue), var(--bg-gradient--Light-royal-blue));
min-height: 20rem;
text-align: center;
margin: auto 2rem auto 0;
min-width: 19rem;
max-width: 23rem;
border-radius: 2rem;
padding: 1rem
}
7 replies