Skip to content

Instantly share code, notes, and snippets.

@night-fury-rider
Last active May 13, 2025 03:14
Show Gist options
  • Save night-fury-rider/2b494d565325fb56cbb9f12cb10c8f52 to your computer and use it in GitHub Desktop.
Save night-fury-rider/2b494d565325fb56cbb9f12cb10c8f52 to your computer and use it in GitHub Desktop.
CSS - Common Styles
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