Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Change colour behind the preloader

Engaged ,
Apr 03, 2017 Apr 03, 2017

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.

Where to change BG.png

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

780
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Apr 18, 2017 Apr 18, 2017

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" />

...
Translate
People's Champ ,
Apr 04, 2017 Apr 04, 2017

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 18, 2017 Apr 18, 2017

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Apr 18, 2017 Apr 18, 2017

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 18, 2017 Apr 18, 2017

Thank you

A bit complicated since we do not have access to the C drive, but will note this down

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 18, 2017 Apr 18, 2017

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 18, 2017 Apr 18, 2017

Thank you Maciek

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Apr 18, 2017 Apr 18, 2017

Considering that the CPLibraryAll.css file gets generated each time you publish, I don't see how you could do what you are describing?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 26, 2019 Mar 26, 2019
LATEST

Hi there David

I did as you said but for some reason it would not work.

I copied the css file CPLibraryAll.css in the folder C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML\assets\css\

I put the css link line in C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML\index.html

Restarted the Captivate 2019 but sill does not take effect...

Thanks again

B

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources