Не работает ссылка

erik87

Старатель
Регистрация
30 Сен 2008
Сообщения
206
Реакции
10
Ниже приведен код для картинки. При наведении образуется внутри рамка. Если поставить ссылку на эту картинку, она не работает. Помогите разобраться почему.

Код:
.box-image:before{
    background-color: rgba(0,0,0,0.6);
    border: 1px solid #414141;
    bottom: 0;
    content: " ";
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
    transition: all 0.45s ease 0s;
    -moz-transition: all 0.45s ease 0s;
    -webkit-transition: all 0.45s ease 0s;
}
.box-image:after{
    position: absolute;
    bottom: 0;
    content: " ";
    left: 0;
    right: 0;
    top: 0;
    z-index: 0;
    transition: all 0.45s ease 0s;
    -moz-transition: all 0.45s ease 0s;
    -webkit-transition: all 0.45s ease 0s;
}

.box-image:hover:before{
    bottom: 20px;
    left: 20px;
    opacity: 1;
    right: 20px;
    top: 20px;
    z-index: 10;
    cursor: pointer;
}
 
Последнее редактирование:
Как ссылку ставишь, покажи?
 
HTML:
<a href="#"></a>
 
HTML:
<a href="#"><img src="путь к картинке" /></a>

Проблема в CSS.
 
<a href="#" class="box-image">

a.box-image:before{................
 
Спасибо, что-то я перемудрил )
 
рамка появляется с картинкой <a href="http://nulled.cc/" target="_blank" class="box-image"></a>

a.box-image:before{
background: url(Для просмотра ссылки Войди или Зарегистрируйся
border: 1px solid #414141;
bottom: 0;
content: " ";
left: 0;
opacity: 0;
position: absolute;
right: 0;
top: 0;
z-index: 0;
transition: all 0.45s ease 0s;
-moz-transition: all 0.45s ease 0s;
-webkit-transition: all 0.45s ease 0s;
}
a.box-image:after{
position: absolute;
bottom: 0;
content: " ";
left: 0;
right: 0;
top: 0;
z-index: 0;
transition: all 0.45s ease 0s;
-moz-transition: all 0.45s ease 0s;
-webkit-transition: all 0.45s ease 0s;
}

a.box-image:hover:before{
bottom: 20px;
left: 20px;
opacity: 1;
right: 20px;
top: 20px;
z-index: 10;
cursor: pointer;
}
 
Последнее редактирование:
эх, побанить бы вас :conf:
 
Назад
Сверху