GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   CSS Question, how to load background image first? (https://gfy.com/showthread.php?t=977020)

Spudman 07-08-2010 05:18 AM

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 :thumbsup

fris 07-08-2010 05:27 AM

put it in the body

http://www.tutorialhero.com/tutorial...mage_guide.php

Spudman 07-08-2010 05:31 AM

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 :)

ottopottomouse 07-08-2010 05:32 AM

That doesn't force it to load first though.

Spudman 07-08-2010 05:35 AM

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?


All times are GMT -7. The time now is 05:45 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123