About this snippet

Showcase your web projects inside this stylish browser frame. It is built entirely with CSS, so it scales perfectly and looks sharp on high-resolution screens without needing any heavy image assets.

Size
1.4 KB
Uses
HTML, CSS
Loads
Nothing external
Views
306
<div class="browser-frame">
  <div class="browser-header">
    <div class="dots">
      <span class="dot red"></span>
      <span class="dot yellow"></span>
      <span class="dot green"></span>
    </div>
    <div class="address-bar">example.com</div>
  </div>
  <div class="browser-content">
    <h1>Your Project Here</h1>
    <p>This is a CSS-only browser mockup container.</p>
  </div>
</div>
.browser-frame {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border: 1px solid #d1d5db;
  background: #fff;
}
.browser-header {
  background: #f3f4f6;
  padding: 12px 15px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 20px;
}
.dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #10b981; }
.address-bar {
  flex: 1;
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
  border: 1px solid #e5e7eb;
}
.browser-content {
  padding: 40px;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
Esc
↑↓ moveEnter select

Start from a template

Open an .html file, or HTML, CSS, JS, Markdown, Less or TypeScript files. You can also drop them here. Styles and scripts go into their panes.

Share

Source

Keyboard shortcuts

Save