Last active
September 12, 2024 07:05
-
-
Save bunsyy/a84f971dfc1e7abbccb7fe43a18be620 to your computer and use it in GitHub Desktop.
Grid where its elements have the same height. Tailwind playground: https://play.tailwindcss.com/8jhSp9EEzv
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
<div class="mx-auto grid grid-cols-2 gap-4 p-6"> | |
<div class="col-span-1 flex flex-col border-2 bg-white p-4"> | |
<h2 class="mb-2 text-2xl font-bold">Card Name</h2> | |
<div class="mb-4 flex flex-wrap"> | |
<span class="mr-2">Link 1</span> | |
<span class="mr-2">Link 2</span> | |
</div> | |
<p class="text-md text-justify">Some Description</p> | |
<div class="mt-auto flex flex-wrap pt-3 text-xs"> | |
<p class="mb-2 mr-2">Tag #1</p> | |
<p class="mb-2 mr-2">Tag #2</p> | |
</div> | |
</div> | |
<div class="col-span-1 flex flex-col border-2 bg-white p-4"> | |
<h2 class="mb-2 text-2xl font-bold">Card Name</h2> | |
<div class="mb-4 flex flex-wrap"> | |
<span class="mr-2">Link 1</span> | |
<span class="mr-2">Link 2</span> | |
</div> | |
<p class="text-md text-justify">Some Description Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | |
<div class="mt-auto flex flex-wrap pt-3 text-xs"> | |
<p class="mb-2 mr-2">Tag #1</p> | |
<p class="mb-2 mr-2">Tag #2</p> | |
</div> | |
</div> | |
<div class="col-span-1 flex flex-col border-2 bg-white p-4"> | |
<h2 class="mb-2 text-2xl font-bold">Card Name</h2> | |
<div class="mb-4 flex flex-wrap"> | |
<span class="mr-2">Link 1</span> | |
<span class="mr-2">Link 2</span> | |
</div> | |
<p class="text-md text-justify">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p> | |
<div class="mt-auto flex flex-wrap pt-3 text-xs"> | |
<p class="mb-2 mr-2">Tag #1</p> | |
<p class="mb-2 mr-2">Tag #2</p> | |
</div> | |
</div> | |
<div class="col-span-1 flex flex-col border-2 bg-white p-4"> | |
<h2 class="mb-2 text-2xl font-bold">Card Name</h2> | |
<div class="mb-4 flex flex-wrap"> | |
<span class="mr-2">Link 1</span> | |
<span class="mr-2">Link 2</span> | |
</div> | |
<p class="text-md text-justify">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p> | |
<div class="mt-auto flex flex-wrap pt-3 text-xs"> | |
<p class="mb-2 mr-2">Tag #1</p> | |
<p class="mb-2 mr-2">Tag #2</p> | |
</div> | |
</div> | |
<div class="col-span-1 flex flex-col border-2 bg-white p-4"> | |
<h2 class="mb-2 text-2xl font-bold">Card Name</h2> | |
<div class="mb-4 flex flex-wrap"> | |
<span class="mr-2">Link 1</span> | |
<span class="mr-2">Link 2</span> | |
</div> | |
<p class="text-md text-justify">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> | |
<div class="mt-auto flex flex-wrap pt-3 text-xs"> | |
<p class="mb-2 mr-2">Tag #1</p> | |
<p class="mb-2 mr-2">Tag #2</p> | |
</div> | |
</div> | |
<div class="col-span-1 flex flex-col border-2 bg-white p-4"> | |
<h2 class="mb-2 text-2xl font-bold">Card Name</h2> | |
<div class="mb-4 flex flex-wrap"> | |
<span class="mr-2">Link 1</span> | |
<span class="mr-2">Link 2</span> | |
</div> | |
<p class="text-md text-justify">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> | |
<div class="mt-auto flex flex-wrap pt-3 text-xs"> | |
<p class="mb-2 mr-2">Tag #1</p> | |
<p class="mb-2 mr-2">Tag #2</p> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment