Modal/Dialog CSS Generator

Generate CSS modal and dialog styles with live preview.

22.3Kuses
8.6/10(231)
0.50
12px
24px
480px
20px

CSS Code

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  background: #1e1e2e;
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
  width: 90%;
  border: 1px solid #333355;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  animation: modal-in 0.2s ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

Recommended Products

Ad

Affiliate Disclosure: As an Amazon Associate, ToolBird earns from qualifying purchases. Links above are affiliate links — if you buy through them, we may earn a small commission at no extra cost to you.

Disclaimer: This tool is provided as-is for informational and educational purposes only.

ToolBird Assistant

Find the right tool instantly

Hey! I'm ToolBird Assistant. Tell me what you need and I'll find the right tool for you.