Note that there are some explanatory texts on larger screens.

plurals
  1. PONeed to fadeIn a webpage's entire contents on load but tiled bg pattern keeps doing the opposite
    primarykey
    data
    text
    <p>I have a webpage with a tiled background body image. It needs to be tiled because the designer wants it scalable with the browser window. It creates a very specific grid over which the rest of the site is designed.</p> <p>There is also a white page border around it (created via a separate div with a higher z-index) because the designer wants to keep the pattern away from the sides of the browser.</p> <p>I need to fade the following page in it's entirety. When I try to fade in the body the screen starts with the pattern already there. And while playing around I've also managed to get the background to fades in but then everything else fades out. I have also tried placing the bg pattern in a div just below the body, but it seems to do strange things in Safari. </p> <p>I have also tried the following tutorial, but to no avail:</p> <p><a href="http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/" rel="nofollow noreferrer">http://blog.anselmbradford.com/2009/08/28/how-to-add-a-simple-webpage-fade-in-effect-using-jquery/</a></p> <p>My thought then is to somehow build a white div overlaying everything, then fading that out. But how do I make this div cover everything, including the body background image? </p> <p>I feel like I'm missing something big here...</p> <p>Here is the relevant code I'm working with:</p> <p>HTML:</p> <pre><code>&lt;body id="home"&gt; &lt;div id="pgborder"&gt;&lt;/div&gt;&lt;!-- end #pgborder--&gt; &lt;div id="main"&gt; &lt;ul id="nav"&gt; &lt;li&gt;&lt;a href="us.html"&gt;us&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="work.html"&gt;work&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="contact.html"&gt;contact&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!-- end #main--&gt; &lt;div id="logo"&gt; &lt;a href="home.html"&gt;&lt;img src="images/logo.gif" width="345" height="24" alt="manuchugh logo"/&gt;&lt;/a&gt; &lt;/div&gt;&lt;!-- end #logo--&gt; &lt;/body&gt; </code></pre> <p>CSS:</p> <pre><code>html, body { height: 100%; font-family: "century gothic", arial, sans serif; color: #8c8d8d; font-size: 15px; overflow: auto; background:#fff url('../images/bg.gif'); } #pgborder { border: 22px #fff solid; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload