Możesz np. utworzyć kontener na przyciski.
przykład
<div class="container">
<img src="https://picsum.photos/500/500/?random=1" alt="Snow">
<div class="buttons">
<button class="btn">Button</button>
<button class="btn">Button</button>
</div>
</div>
.container {
position: relative;
width: 50%;
}
/* Make the image responsive */
.container img {
width: 100%;
height: auto;
}
/* Style the button and place it in the middle of the container/image */
.container .buttons {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
}
.container .buttons .btn {
background-color: #555;
color: white;
font-size: 16px;
padding: 12px 24px;
border: none;
cursor: pointer;
border-radius: 5px;
}
.container .btn:hover {
background-color: black;
}