Last active
May 13, 2025 03:14
-
-
Save night-fury-rider/2b494d565325fb56cbb9f12cb10c8f52 to your computer and use it in GitHub Desktop.
CSS - Common Styles
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
body { | |
background-color: skyblue; | |
margin: 20px; | |
height: 90%; | |
} | |
.flex_center { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} | |
/* Container */ | |
.app_container { | |
background-color: lavender; | |
gap: 20px; | |
height: 100%; | |
} | |
/* Card like structure */ | |
.app_card { | |
padding: 10px; | |
border-radius: 10px; | |
border: 1px solid blue; | |
cursor: pointer; | |
} | |
/* Image */ | |
.app_image { | |
aspect-ratio: 1/1; | |
object-fit: cover; | |
object-position: 15% 100%; | |
} | |
/* To get width as per content */ | |
.width_fit { | |
width: fit-content; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment