-
Beta Was this translation helpful? Give feedback.
Answered by
delucis
Jul 8, 2024
Replies: 1 comment
-
For something like this, it might be best to make a custom grid component that gives you full flexibility, for example: ---
// src/components/TwoColumnGrid.astro
---
<div class="my-grid">
<slot />
</div>
<style>
.my-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
</style> Then in your content you can use this: import TwoColumnGrid from '/src/components/TwoColumnGrid.astro';
<TwoColumnGrid>
[![](/1.webp)](/url_1/)
[![](/2.webp)](/url_2/)
[![](/3.webp)](/url_3/)
</TwoColumnGrid> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
delucis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For something like this, it might be best to make a custom grid component that gives you full flexibility, for example:
Then in your content you can use this: