I know that this is an old question, but I am fairly new to Storyline and could do with some help. I need to add some image branding to the html page for a customer. I've tried adding the
<body background="my image"> in the header html, and I've tried an external css file, but so far, nothing has worked.
You can change the background design as detailed here, but there isn't a specific way to change it only for the HTML5 output. Hopefully someone in the community may have additional ideas to share with you, but please note that it'll likely be a modification of the published output and that is not something that we can offer support for.
I am using the code in the screenr, but it's still not working. I actually see the image when the course is loading, but it is the size of the actual course/player--it's not surrounding course. Does there need to be different code for Storyline 2?
This thread is a bit older, so I'm not certain that folks are still subscribed but since it's a modification of the published output it's not something that I can assist with. You may want to look at messaging a few of those individuals directly to see if they are able to assist.
Yeah, I wouldn't add that document.bgColor statement.
But definitely experiment. Put code in and see if it helps. Also remember that your background_blue.png statement can be relative, but you may want to make it absolute for testing purposes by starting with http:
65 Replies
Hi Jessica,
You can change the background design as detailed here, but there isn't a specific way to change it only for the HTML5 output. Hopefully someone in the community may have additional ideas to share with you, but please note that it'll likely be a modification of the published output and that is not something that we can offer support for.
Hi Guilherme,
I have attached the working background for you.
Yes, you need to edit the "story_html5.html" and edit this line: <style>html,body{background:#FFFFFF;}</style>
to:
<style>html,body{background-image: url("BG.png");}</style>
Replacing "BG.png" to the filename of your image.
Hope this makes sense.
Phil, thanks for the help!
Hello,
I am using the code in the screenr, but it's still not working. I actually see the image when the course is loading, but it is the size of the actual course/player--it's not surrounding course. Does there need to be different code for Storyline 2?
Hi Amy,
This thread is a bit older, so I'm not certain that folks are still subscribed but since it's a modification of the published output it's not something that I can assist with. You may want to look at messaging a few of those individuals directly to see if they are able to assist.
There are options you may want to use to automatically resize your presentation to fill the screen.
Here is my text I use for this:
<style>html,body{background: url('MYFILEURL') no-repeat; background-size: cover; overflow: hidden;}</style>
Is this an added line or a changed one? I added it here, but now the course doesn't launch at all.
document.bgColor = g_strBgColor;
<style>html,body{background: url('background_blue.png') no-repeat; background-size: cover; overflow: hidden;}</style>
Yeah, I wouldn't add that document.bgColor statement.
But definitely experiment. Put code in and see if it helps. Also remember that your background_blue.png statement can be relative, but you may want to make it absolute for testing purposes by starting with http:
Hi, you might want to check out a blog I made on this: http://brayleinolearning.co.uk/blog/2016/march/24/adding-a-background-image-to-your-articulate-storyline-course/
This should hopefully help!
Thanks Phil for sharing here, and just a reminder that editing the published output is not something that our team can offer support for.
Lo intentaré
Hi Jorge,
This discussion is a bit older, but if you need help with something just let us know!
Thanks a lot Phil for taking time to explain this in an article. It is really helpful to understand.
This post was removed by the author
This discussion is closed. You can start a new discussion or contact Articulate Support.