v2.5.2
Giriş yap

Css text-decoration kodunu çalıştıramama problemi

yazilimyolcusu
574 defa görüntülendi

Merhaba arkadaşlar. Aşağıdaki kodda a tag'i için "text-decoration:none" kullanmam lazım. Mozilla ve chrome için özellikle. "text-decoration" çalışmıyor.

<a href="coksatanurunlerdetaysayfasi.php?coksatanurunlerdetaygit=<?php echo $coksatilanurunler['urun_id']; ?>"><div class="urunincele-butonu">Ürünü İncele</div></a>

css kodları da aşağıda.

.urunincele-butonu {
  width:391px;
  height:35px;
  line-height:35px;
  background:#60a3bc;
  text-align:center;
  font-size:18px;
  color:#fff;
  text-decoration: none;
}


.urunincele-butonu a:hover {
  width:391px;
  height:35px;
  line-height:35px;
  background:#60a3bc;
  text-align:center;
  font-size:18px;
  color:#fff;
  text-decoration: none;
}
Cevap yaz
Cevaplar (2)
tayfunerbilen
923 gün önce

çalışmaz çünkü .urunincele-butonu classın a etiketinde değil onun içindeki div'de, text-decoration stili ise a etiketinin kendisinde.
basitçe şöyle sıfırlayabilirsin.

a {
    text-decoration: none;
}
holdfast
923 gün önce

text-decoration: none !important;