Note that there are some explanatory texts on larger screens.

plurals
  1. POBody won't accept background-image property?
    primarykey
    data
    text
    <p>PROBLEM SOLVED</p> <p>I'm working on a personal website and my background image won't appear, i am using a javascript code to change my background color from time to time and my default background-iamge is set to a color so my the first second of website won't appear white. Could that be the problem of my image not appearing?</p> <p>This is part of my html code: <br> <br> </p> <pre><code>window.onload = function() { var currentColor = '#61a18e'; setInterval(function() { document.body.style.backgroundColor = currentColor; currentColor = currentColor === '#dd9023' ? '#61a18e' : '#dd9023'; }, 10000);// }; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="wrapper"&gt; &lt;div class="nowplaying"&gt; Text &lt;/div&gt; &lt;div class="song"&gt; TExt &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>And this is a part of my css code including html,body and the main wrapper container(if it helps for some reason) :</p> <pre><code>html, body{ width:100%; height:99%; position: relative; margin: auto; background-color:#61a18e; -webkit-background-size: cover; -moz-background-size: cover; background-size: cover; background-image:url ('img/background.png'); } #wrapper{ position:absolute; top: 0; left: 0; bottom: 0; right: 0; position:absolute; width: 50%; height: 40%; overflow: auto; } </code></pre> <p>Hope i'm not missing anything here.</p> <p>Thanks</p> <hr> <p>EDIT : Interesting my code on JSFiddle is working.... But none of my browser (Mozilla and IE9) is showing any image,but if i insert it with the image is showing... Is there some settings to browser not showing?</p> <p>NEW EDIT! Problems olved,silly for me,but it looks like i should have put <code>background-image:url ('../path');</code>,for some reason it wodn't take ithout the ../. Thanks for the help. </p>
    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.
 

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