I have encountered a problem where the background (BG) image is not appearing in Internet Explorer (IE). I am struggling to find a solution for this issue.
BG Problem
Below is the code snippet showing how I implemented the background image. I have used a texture specifically for screens with larger resolutions.
body
{
margin: 0px;
padding: 0px;
background-image: url("./web_elements/bg.png"), url("./web_elements/tex2.jpg");
background-repeat: no-repeat,repeat;
background-position:top center,0 0;
}
Javascript Error
The error only appears in Internet Explorer and not in Firefox or Chrome.
Here is a screenshot of the IE error:
This is how it should look like:
Here is my javascript code:
// Your JavaScript code goes here.
// Make sure each function has proper documentation.