Griffin Premium
Merhaba değerli forum sakinleri resim üzerine buton nasıl eklersiniz ondan bahsedeceğim.
CSS:
.container {
position: relative;
width: 50%;
}
.container img {
width: 100%;
height: auto;
}
.container .btn {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
background-color: #555;
color: white;
font-size: 16px;
padding: 12px 24px;
border: none;
cursor: pointer;
border-radius: 5px;
}
.container .btn:hover {
background-color: black;
}
HTML:
<div class="container">
<img src="resim adresi buraya arka plana koyacağınız resim adresi" alt="Snow">
<button class="btn">of nope king</button>
</div>