при наведении на картинку, всплывает текст. Я отцентровал его, но не могу понять - почему 1 слово в строчку. Все параметры перепробовал в стиле. плюс к этому начинает работать ссылка не в радиусе картинки. Изначально была проблема такая же с затемнением, но ее решил
width: 30%;
margin-right: 5px;
margin-left: 100px;
margin-bottom: 10px;
display: inline-block;
vertical-align: top;
}
.a-pict{
width: 100;
padding-bottom: 68.68%;
display: block;
position: relative;
}
.a-pict > img {
position: absolute; top: 0; left: 0;
width: 85%;
height: 85%;
}
.a-pict:before,
.a-pict:hover:after{
content: '';
position: absolute; top: 0; left: 0;
z-index: 1;
opacity: 0;
visibility: hidden;
-webkit-transition: 0.4s;
transition: 0.4s;
}
.a-pict:before{
background: rgba(0,0,0,0.5);
width: 85%;
height: 85%;
}
.a-pict:hover:after{
content: '1-й Турнир Деда';
position: absolute; top: 40%; left: 35%;
margin: -15px 0 0 -15px;
border: 3px solid #000;
background: #000;
width: 0px;
height: 0px;
line-height: 30px;
text-align: center;
font-weight: 700;
color: #fff;
font-size: 26px;
border-radius: 50%;
}
.a-pict:hover:before,
.a-pict:hover:after{
opacity: 1;
visibility: visible;
}
</style>
<a href="http://uniq.clan.su/index/1_j_turnir_deda/0-19" class="a-item">
<span class="a-pict">
<img src="/Tournir/safari/korichnevyj_okhotnik.png" alt="" />
</span>
</a>