CSS Question, how to load background image first?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spudman
    Confirmed User
    • Aug 2002
    • 3198

    #1

    CSS Question, how to load background image first?

    hey,

    does anyone know how i can get a css background image to load as the first image as at the moment all other images on my site load first then the background so i looks a bit shite

    thanks
    Take it Easy !!!
  • fris
    Too lazy to set a custom title
    • Aug 2002
    • 55679

    #2
    put it in the body

    http://www.tutorialhero.com/tutorial...mage_guide.php
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

    Comment

    • Spudman
      Confirmed User
      • Aug 2002
      • 3198

      #3
      i only want to load the background of a certain div, not the whole page. i wasn't clear in my first post.

      Thanks fris
      Take it Easy !!!

      Comment

      • ottopottomouse
        She is ugly, bad luck.
        • Jan 2010
        • 13177

        #4
        That doesn't force it to load first though.
        ↑ see post ↑
        13101

        Comment

        • Spudman
          Confirmed User
          • Aug 2002
          • 3198

          #5
          i think i have found it:

          <style type="text/css">
          .hiddenPic {display:none;}
          </style>
          <img src="poodle-puppy-Clara.jpg"
          alt="Clara at 8 weeks" title="Clara at 8 weeks"
          height="350" width="350" class="hiddenPic">

          i tried it an it works, does anyone know if there are any problems using this code?
          Take it Easy !!!

          Comment

          Working...