Background color у кнопки
Ответы (1 шт):
Автор решения: De.Minov
→ Ссылка
Использовать псевдоэлемент и сместить его, например так.
.shift {
border-radius: 0;
border: 1px solid #000;
background-color: transparent;
padding: 10px 15px;
position: relative;
}
.shift::before {
content: '';
display: block;
width: 100%;
height: 100%;
background-color: rgba(0,0,255,.25);
position: absolute;
left: 5px;
top: 5px;
z-index: 1;
}
.shift > span {
position: relative;
z-index: 2;
}
<button class="shift"><span>Уехал</span></button>
