Created
June 21, 2021 04:14
-
-
Save thecodemedia/c882bda4a42ce989fe3c24a239cb26c9 to your computer and use it in GitHub Desktop.
This file contains 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 { | |
width: clamp(200px, 50%, 700px); | |
// содержимое может растягиваться в пределах колонки | |
display: flex; | |
flex-direction: column; | |
background: lightpink; | |
padding: 1rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment