Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{style}
.clear { /* generic container (i.e. div) for floating buttons */
    overflow: hidden;
    width: 100%;
}

a.button {
    background: transparent url('http://www.teamlead.ru/download/attachments/6324231163242325/webbutton_a.png') no-repeat scroll top right;
    color: #444;
    display: block;
    float: left;
    font: normal 16px arial, sans-serif;
    text-shadow:1px 1px 0 white;
    height: 42px;
    margin-right: 5px;
    padding-right: 20px; /* sliding doors padding */
    text-decoration: none;
}

a.button span {
    background: transparent url('http://www.teamlead.ru/download/attachments/6324231163242325/webbutton_span.png') no-repeat;
    display: block;
    line-height: 32px;
    padding: 5px 0 5px 20px;
    
}

a.button:active {
    background-position: bottom right;
    color: #000;
    outline: none; /* hide dotted outline in Firefox */
    
}

a.button:active span {
    background-position: bottom left;
    padding: 6px 0 4px 20px; /* push text down 1px */
    
}

{style}

{html}
<a class="button" href="#" onclick="this.blur();"><span>Пример кнопки</span></a>
{html}