Preload?

Discussion in 'CSS' started by pr0xy122, Dec 4, 2006.

  1. #1
    How can I go about preloading images using CSS, im a CSS noob and dont know much about it so plox be patient lol.
     
    pr0xy122, Dec 4, 2006 IP
  2. crazybjörn

    crazybjörn Peon

    Messages:
    270
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Basically you use the following CSS class:
    .hiddenPic {display:none;}

    Then you link your images and apply that class, what happens is that it loads the image but doesn't show it.

    <img src="some_picture.jpg" alt="somepic" title="Some Pictures" class="hiddenPic">
    HTML:
     
    crazybjörn, Dec 6, 2006 IP