Grow your CSS skills. Land your dream job.

why do sprites seem so complicated?

  • # April 27, 2010 at 12:57 pm

    Why is it that sprites seem so complicated. I seem to follow all the steps, but there always seems to be something I missed and can’t figure out what. On this site…I finally figured out how to use sprites in the nav bar, though I want to use another one in the side bar for a large button. Neither the hover nor the link works????

    http://www.newseminary.org/staging/berke14q_wrdp/

    Code:

    # April 27, 2010 at 4:32 pm

    They really aren’t, I think you are probably just having a problem with the math. Read this article which explains a lot
    http://www.alistapart.com/articles/sprites

    # April 27, 2010 at 4:52 pm

    thanks, but the math on this one is pretty simple. There are just two images stack on top of each other in the sprite. I’m trying every way of writing the CSS I can think of, but somehow it’s not jiving. Trying to use the same syntax in the navigation bar…still nothing??? This is only one image, as opposed to being in an unordered list. Not sure why it would, but does that by chance make a difference?

    # April 27, 2010 at 5:22 pm

    Oh I figured it out, i was just using an id where I didn’t need to. it worked when I simplified the CSS.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".