przewiń do treści

HTML, XHTML i CSS. Praktyczne projekty. Wydanie II

Włodzimierz Gajda

div {
    width: 800px;
    height: 200px;
    margin: 200px auto 0px auto;
    position: relative;
}

div a {
    display: block;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 32px;
    right: 0;
    text-decoration: none;
    font-size: 11px;
    overflow: hidden;
}
div a span {
    background: url('img/przycisk.png') 0 0 no-repeat;
}
div a span:hover  {
    background: url('img/przycisk.png') -32px 0 no-repeat;
}

Listing 36.7. Style przycisków do góry

Rozdział 36. Projekty

listing-36-07.txt