Created
March 23, 2024 18:40
-
-
Save helabenkhalfallah/7609f88d9b6a712efb714d38f12fcb56 to your computer and use it in GitHub Desktop.
Game Card
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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