Dropdown Menu CSS Generator

Generate CSS dropdown menus with live preview.

8.8Kuses
8.6/10(211)
8px
10px
14px
200px
12px

CSS Code

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1e1e2e;
  border: 1px solid #333355;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 4px 0;
  z-index: 10;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #e0e0e0;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: #2a2a4e;
}

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.