Skip to main content
Inspiring
Apr 4, 2017 6:16 AM UTC
Answered

Change colour behind the preloader

Hi there,

I am trying to change the colour of the background in my project. I am exporting as HTML 5 only. I need white background. In the preferences, I set the colour to white. However, when I export, the background colour while the preloader is visible is grey. I found where in which file I can change the colour AFTER export. This is where I find the file \assets\css\CPLibraryAll.css

This is the line where I can change the colour, but it is a hassle.

I need to reinsert the css file in the SCORM package and it is not the best solution. anyone with similar experience and possibly a solution?

Thank you in advance

Bobby

This topic is closed to new replies. Start a new post to keep the conversation going.
TLCMediaDesign
TLCMediaDesignCorrect answer
Inspiring
Apr 18, 2017 1:17 PM UTC

You can put is in the template files located here:

C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML\index.html

C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML\assets\css\

Put your css file in the css folder and create the link in the index.html file.

<!DOCTYPE html>
<html lang="en">
<head>
<meta name='viewport' content='initial-scale = 1, minimum-scale = 1, maximum-scale = 1'/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>@MOVIETITLE</title>
<style type="text/css">#initialLoading{background:url(assets/htmlimages/loader.gif) no-repeat center center;background-color:#ffffff;position:absolute;margin:auto;top:0;left:0;right:0;bottom:0;z-index:10010;}</style>
<link rel="stylesheet" type="text/css" href="assets/css/your_css.css">

It will get published every time and while previewing in the browser.

8 replies

Sierzpow-BJuupH
Participant
Apr 18, 2017 1:35 PM UTC

Hi!

Actually, you don't have to reinsert the css. The fact is, if you save your custom CPLibraryAll.css file under Captivate's default css directory (eg. C:\Program Files\Adobe\Adobe Captivate 2017 x64\HTML\assets\css), every time a HTML5 project is published (SCORM or not) a modified CPLibraryAll.css file will be automatically generated along with it.

Cheers,

Maciek

Translate
Inspiring
Apr 18, 2017 2:03 PM UTC

Thank you Maciek

Translate
TLCMediaDesign
Inspiring
Apr 4, 2017 12:58 PM UTC

You can include a custom css file when you publish and never have to change it again.

You can add the css:

.main_content

{

color: #FFFFFF !important

}

Translate
Inspiring
Apr 18, 2017 1:03 PM UTC

Thank you for taking time and replying and sorry for my late reply.

Would you please clarify at what stage should I create the custom CSS?

Is it after the  Captivate output is generated?

Thank you once again

Bobby

Translate
TLCMediaDesign
TLCMediaDesignCorrect answer
Inspiring
Apr 18, 2017 1:17 PM UTC

You can put is in the template files located here:

C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML\index.html

C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML\assets\css\

Put your css file in the css folder and create the link in the index.html file.

<!DOCTYPE html>
<html lang="en">
<head>
<meta name='viewport' content='initial-scale = 1, minimum-scale = 1, maximum-scale = 1'/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>@MOVIETITLE</title>
<style type="text/css">#initialLoading{background:url(assets/htmlimages/loader.gif) no-repeat center center;background-color:#ffffff;position:absolute;margin:auto;top:0;left:0;right:0;bottom:0;z-index:10010;}</style>
<link rel="stylesheet" type="text/css" href="assets/css/your_css.css">

It will get published every time and while previewing in the browser.

Translate