PASTE
tools
Search
⌘K
🇺🇸
EN
HTML/CSS/JS PLAYGROUND
Blank
Hello Flexbox
CSS Animation
Fetch API Demo
Console
Share Link
HTML
CSS
JS
<div class="container"> <div class="box box-1">1</div> <div class="box box-2">2</div> <div class="box box-3">3</div> <div class="box box-4">4</div> <div class="box box-5">5</div> </div>
* { box-sizing: border-box; margin: 0; padding: 0; } body { background: #0f0f0f; font-family: monospace; padding: 24px; } .container { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; min-height: 80vh; } .box { width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: bold; border-radius: 8px; color: white; transition: transform 0.2s ease; } .box:hover { transform: scale(1.1); } .box-1 { background: #6366f1; flex-grow: 1; } .box-2 { background: #8b5cf6; } .box-3 { background: #a855f7; flex-basis: 200px; } .box-4 { background: #c084fc; } .box-5 { background: #e879f9; flex-grow: 2; }
PREVIEW