<div class="bento-container">
<div class="bento-header">
<h2>My Portfolio</h2>
<p>A beautiful grid layout perfect for designers.</p>
</div>
<div class="bento-grid">
<div class="bento-card span-2 highlight-card">
<h3>Frontend Development</h3>
<p>Building beautiful, fast, and accessible user interfaces.</p>
</div>
<div class="bento-card regular-card">
<div class="card-icon">
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#3b82f6" stroke-width="2"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path></svg>
</div>
<h4>UI Design</h4>
</div>
<div class="bento-card regular-card">
<div class="card-icon">
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#ec4899" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>
</div>
<h4>Consulting</h4>
</div>
<div class="bento-card span-row dark-card">
<h3>Mobile Apps</h3>
<p>Creating seamless experiences for iOS and Android.</p>
</div>
</div>
</div>
Back to Snippets
Modern Bento Box Portfolio CSS
Showcase your work with a modern bento box portfolio. We used CSS Grid to fit different sized cards together perfectly, so you get an incredibly clean layout just for your projects.
168