SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2008
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Background Load Priority

    Hey all,

    Quick question:

    How can I get my content background to load before the body background. At the moment the body background is green and the content (container) background is white. When the page loads my content is displayed on the green background until my container background loads... Can i make the container background load first? (View whatcracksmeup. dot com if you don't understand what I'm saying).

    Any help would be greatly appreciated!!

    Thanks in advance, Nick
    Win A FREE iPhone!

    Tired from working? Funny Things! Laugh the stress away
    Some Funny Jokes | Funny Videos

  2. #2
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To do that you would probably need javascript to set the body background style after the page loads.

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,782
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Completely unsure about this but perhaps place the container styles first in your CSS? (Though probably JS is needed, as posted above)...though it may jump around since it will base crap off stuff not styled yet..
    Always looking for web design/development work.
    http://www.CodeFundamentals.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •