Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS how to import specific spot of an image

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #31090
    hellie
    Member

    hello guys, maybe the title doesn’t explain the problem properly

    I’m designing a sprite navigation menu which happened to be from-right-to-left

    http://www.freeimagehosting.net/uploads/4b6f6a9f08.png

    all I know that I can import the image but from left side example

    .kwicks li {
    display: block;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    float: left;
    width: -130px;
    height: 40px;
    margin-right: 0px;
    background:url(images/nav.png) no-repeat;
    }
    .kwicks a {
    display:block;
    height:40px;
    text-indent:-9999px;
    outline:none;
    }
    /* here ><><><><><><><>*/
    #kwick1 {
    background-position:0px 0px;
    }
    #kwick2 {
    background-position:-200px 0px;
    }

    it imports the image starting from the left side, so how can i import it from the right side???

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.