Forum Discussion
SanduniFernando
6 years agoCommunity Member
Page background image not working
As per client requests, many of the courses that I developed had page background images. The below javascript worked pretty well for the purpose (thanks to Russell Killips).
$(".top-ui-bg").css("b...
SanduniFernando
6 years agoCommunity Member
As the javascript in the description no longer works, the below is the updated code:
document.getElementById("slide").style.backgroundColor = "transparent";
var x = document.getElementById("wrapper");
x.style.backgroundSize = "cover";
x.style.backgroundRepeat = "no-repeat";
x.style.backgroundPosition = "center";
x.style.backgroundImage = "url(Cover.jpg)";
Thank you so much Russell Killips for sharing this updated code.
Owen, Russell,
You guys are real Heroes and sharing knowledge is the beauty of this e-learning community.
USCMarty
5 years agoCommunity Member
Where do you place this code? story.html?
Related Content
- 12 days ago
- 4 months ago
- 10 months ago