Back to CSS Buttons Rx Label Pure CSS
Share
HTML
<button class="btn-rx">
  <span class="btn-rx-badge" aria-hidden="true">℞</span>
  <span class="btn-rx-text">TAKE ONE</span>
</button>
CSS
.btn-rx {
  position: relative;
  padding: 12px 26px 12px 16px;
  border: 1.5px solid #4d5435;
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg,
      transparent 0 22px,
      rgba(77,84,53,0.08) 22px 23px),
    #f5ede0;
  color: #4d5435;
  font-family: ui-serif, Georgia, serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 14px;
  box-shadow: 0 4px 10px rgba(77,84,53,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-rx-badge {
  width: 26px; height: 26px;
  background: #a32424;
  color: #f5ede0;
  border-radius: 3px;
  display: grid; place-items: center;
  font-family: ui-serif, Georgia, serif;
  font-size: 14px; font-weight: 800;
}
.btn-rx-text { border-bottom: 1.5px dotted #4d5435; padding-bottom: 1px; }
.btn-rx:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(77,84,53,0.22); }