JSFiddle - React, Tailwind, and code Playground
HTML
<div class="page">
<div class="button-with-lines">
<div class="button">X</div>
</div>
<div class="button-with-lines">
<div class="button">X</div>
</div>
</div>
CSS
.page { /* decorative styles, emulating some page with background */
width: 100vw;
height: 100vh;
background: red;
padding: 150px;
}
:root {
--lineHeight: 75px;
}
.button {
background: white;
width: calc(100% - 20px);
height: calc(100% - 20px);
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
}
.button-with-lines {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
border-radius: 50%;
border: 1px solid white;
margin-top: var(--lineHeight);
margin-bottom: var(--lineHeight);
}
.button-with-lines:before, .button-with-lines:after {
content: "";
display: block;
width: 1px;
height: var(--lineHeight);
background: white;
position: absolute;
left: calc(50% - 1px);
}
.button-with-lines::after {
top: calc(-1 * var(--lineHeight));
}
.button-with-lines::before {
bottom: calc(-1 * var(--lineHeight));
}