Mini Code Preview
Paste HTML, CSS, JS and click “Run” to preview
Run ▶
Reset
HTML
Markup
Hello Mini CodePen 👋
Edit HTML, CSS, and JS, then press
Run
.
Click Me
CSS
Styles
body { display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0; background: linear-gradient(135deg, #22c55e, #0ea5e9); font-family: system-ui, sans-serif; } .card { background: white; padding: 24px 28px; border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35); max-width: 360px; text-align: center; } .card h1 { margin-bottom: 10px; color: #111827; } .card p { margin-bottom: 16px; color: #4b5563; } .card button { border: none; background: #22c55e; color: #022c22; padding: 8px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; }
JavaScript
Logic
console.log("Mini CodePen ready!");
Preview
Idle