Jump to content

roland

Newbie
  • Posts

    5
  • Joined

  • Last visited

Everything posted by roland

  1. Спасибо огромное! То, что нужно! А я уже было собрался скрипт писать под это дело... Я ж те уже скинул решение выше: http://jsfiddle.net/Roland5858/cb7kLec3/ В примере Switch74 так же, но последний стиль удалить нужно - он не имеет смысла.
  2. Ну я так и понял, потому и написал, что только в этом случае
  3. В данном конкретном случае я бы вообще через бордеры сделал, типа так http://jsfiddle.net/Roland5858/syvdwfve/ Но ты о другом спрашивал. Присваевай ховер тому элементу на который курсор наводишь, а стили прописывай для того который меняется, т.е. не .class_1 span:hover {а так: .class_1:hover span {http://jsfiddle.net/Roland5858/cb7kLec3/ ЗЫ: поменял первый цвет в примере, а то плохо видно разницу. .class_1 span:hoverэто не нужно, т.к. невозможно навести на span не наведя на .class_1
  4. Собственно код .enter {background: url("../img/enter.png"); display: inline-block; width: 170px; height: 42px; position: relative;margin-left: 20px;cursor: pointer; font-family: Arial, sans-serif; font-size: 20px; font-stretch: condensed; font-style: italic; font-weight: bold; color: #7F5B2B; line-height: 42px; text-align: center; text-decoration: none; text-shadow: 1px 2px 3px rgba(255,255,255,0.5); -webkit-background-clip: text; -moz-background-clip: text; background-clip: text;}.enter:hover {background-position: 0 -42px;}.enter:active {background-position: 0 -84px;}<button class="enter" onclick="submit();" type="submit">ВОЙТИ</button><a href="{registration-link}"><div class="enter">РЕГИСТРАЦИЯ</div></a>Проблема в браузерах или в моих кривых руках?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy