0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Question about CSS Sprites

  • Question about CSS Sprites

    Posted 14 years 2 months ago
    • If I have a sprite and it's called twice in a CSS file does that send two http requests?

      ie:
      #container .row_top {background:url('sprite.png') repeat 20px 0}
      #container .row_bottom {background:url('sprite.png') repeat 0 20px}

      versus
      #container {background:url('sprite.png') no-repeat 0 0;}
      #container div {background-position: 20px 0;}
      #container div div (background-position:0 20px;}


      my assumption is that it does but doesn't matter much since the image is already downloaded into the browser cache for each call - or something like that. I'm pretty new to the technique, any help?
    • MMOFPS games: www.massivefps.com | Extension Templates: www.extensiontemplates.com

Time to create page: 0.053 seconds