Skip to content

Instantly share code, notes, and snippets.

@thecodemedia
Created June 21, 2021 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thecodemedia/c882bda4a42ce989fe3c24a239cb26c9 to your computer and use it in GitHub Desktop.
Save thecodemedia/c882bda4a42ce989fe3c24a239cb26c9 to your computer and use it in GitHub Desktop.
// настройки содержимого карточки
// задаём минимальную, обычную и максимальную ширину
.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