Skip to content

Instantly share code, notes, and snippets.

@helabenkhalfallah
Created March 23, 2024 18:40
Show Gist options
  • Save helabenkhalfallah/7609f88d9b6a712efb714d38f12fcb56 to your computer and use it in GitHub Desktop.
Save helabenkhalfallah/7609f88d9b6a712efb714d38f12fcb56 to your computer and use it in GitHub Desktop.
Game Card
.card-container {
container-type: inline-size;
}
.card {
display: flex;
flex-direction: row;
gap: 1rem;
border: 1px solid #ccc;
padding: 1rem;
}
.card-header {
max-width: 400px;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
}
@container (max-width: 500px) {
.card {
flex-direction: column;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment