LykeTheBest
Centipat
- Katılım
- 2 Ağustos 2022
- Mesajlar
- 78
- Çözümler
- 1
Daha fazla
- Cinsiyet
- Erkek
HTML ve CSS kullanarak bir site yapmaya çalışıyorum fakat butonda resim ve yazının pozisyonunu ayarlayamadım. Amacım yazıyı görselin altına almak.
Kodlar:
Html:
Css:
Kodlar:
Html:
HTML:
<div class="haber"><a class="button button2" href="/"><img src="https://www.technopat.net/sosyal/styles/default/xenforo/technopat-logo.png">TEST HABERİ</a></div>
CSS:
.haber .button {
background-color: RED; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
font-family: 'Roboto', sans-serif;
width:40%;
border-radius:10px;
float:left;
}
.button1 {
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
.button2:hover {
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}