# Double underline (B 069)

Category: Buttons  
Tags: underline, text-button, two-lines, offset  
Page: https://designforai.dev/snippet/btn-069

## Prompt

A blue text button (15px medium, #1e40af, no box) with a permanent pale blue #93c5fd 2px underline; on hover a solid #1e40af 2px line draws over it from left to right (background-size 0 to 100%, 300ms). Active darkens the text to #1e3a8a. Focus outline 2px blue.

## HTML

```html
<button class="btn-069">Documentation</button>
```

## CSS

```css
.btn-069 {
  position: relative;
  font: 500 15px/1 system-ui,sans-serif;
  color: #1e40af;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  background-image: linear-gradient(#1e40af,#1e40af),linear-gradient(#93c5fd,#93c5fd);
  background-repeat: no-repeat;
  background-size: 0 2px,100% 2px;
  background-position: 0 100%,0 100%;
  transition: background-size .3s
}
.btn-069:hover {
  background-size: 100% 2px,100% 2px
}
.btn-069:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 4px
}
.btn-069:active {
  color: #1e3a8a
}
```
