Custom eLearning and Digital Training Solutions Provider
  • Home
  • eLearning Services
    • Custom Elearning Solutions
    • Convert PowerPoint to eLearning
    • Rapid eLearning Development
    • Translation and Localization
    • Flash To HTML5 Conversion
    • Legacy Content Conversion
    • Mobile Learning
    • Gamified Learning Solutions
    • Blended Learning Solutions
  • Software Development
    • Learning Management System
    • Workforce Management System
    • Human Resource Management System
    • Bug Tracker Software
    • Custom Software Development
  • Contact Us
  • Blog
  • Search
  • Menu Menu
  • 0Shopping Cart
  • Home
  • eLearning Services
    • Custom Elearning Solutions
    • Convert PowerPoint to eLearning
    • Rapid eLearning Development
    • Translation and Localization
    • Flash To HTML5 Conversion
    • Legacy Content Conversion
    • Mobile Learning
    • Gamified Learning Solutions
    • Blended Learning Solutions
  • Software Development
    • Learning Management System
    • Workforce Management System
    • Human Resource Management System
    • Bug Tracker Software
    • Custom Software Development
  • Contact Us
  • Blog

How to Customize Closed Caption Width in Storyline 360 with JavaScript

customizing-closed-caption-width-in-storyline-360-blogimage

Articulate Storyline and Rise are popular tools for creating interactive and engaging e-learning content, but sometimes you need to go beyond their default settings to tailor the user experience.

About Closed Captions in Storyline 360

Closed captions are textual representations of the audio content in videos. They play a crucial role in making content accessible to a broader audience, including individuals who are deaf or hard of hearing.

Moreover, they benefit users in noisy environments, those learning a new language, and individuals who prefer reading along with the audio.

Understanding JavaScript in Articulate Storyline 360

Articulate Storyline 360 and Articulate Rise provide support for JavaScript through triggers and variables, allowing developers to extend functionality beyond the built-in features.

JavaScript can be used to manipulate elements within the course player, including closed captions, to meet specific design and accessibility requirements.

Why Customize Closed Caption Width for eLearning Courses?

Customizing closed caption width is not just about aesthetics but plays a crucial role in enhancing accessibility and improving overall user experience.

It addresses readability issues, reduces visual clutter, supports diverse user preferences, ensures compliance with accessibility standards, and empowers users to tailor their viewing experience according to their needs.

Table of contents
1 About Closed Captions in Storyline 360
2 Understanding JavaScript in Articulate Storyline 360
3 Why Customize Closed Caption Width for eLearning Courses?
4 Watch the video tutorial now and start implementing it in your eLearning course!
5 Summary
6 eLearning Services
7 Frequently Asked Questions (FAQs)

Watch the video tutorial now and start implementing it in your eLearning course!

Click or tap on the play button below to watch the video for easier understanding.

In this comprehensive guide, we will explore how to use Audacity tool for the sound equalizer in Storyline 360 to enhance e-learning projects.

We will explain how to customize closed caption width using JavaScript in Articulate Storyline 360 to enhancing accessibility and usability in your articulate courses.

Step-by-step guide on how to use JavaScript to modify the width of closed captions dynamically: 

Open your Storyline file where you intend to modify the closed captions.

Step 1: Embed JavaScript into the Storyline Project

1. Navigate to Slide Properties

a. Go to the slide where you want to adjust the caption width.

customizing-closed-caption-width-in-storyline-360-image1
b. Click on the “Triggers” panel on the right side of the screen.

custom-elearning-solutions_contact-us-card2. Add a JavaScript Trigger

a. Click on “Create a New Trigger”.
b. Set the trigger action to “Execute JavaScript”.

customizing-closed-caption-width-in-storyline-360-image2

3. Copy and paste the given JavaScript code into your Storyline project.

customizing-closed-caption-width-in-storyline-360-image3

JavaScript Code:

const addCss = css => document.head.appendChild(document.createElement(“style”)).innerHTML=css;

addCss(“.view-desktop .caption, .theme-unified .caption {width:50%;}”);

4. You have the flexibility to adjust the width of the closed caption. In this example,
we’ve set it to 50%.

5. Make sure that the function executes when the timeline starts on this slide.

Step 2: Preview the Course

1. Examine the course to observe the adjusted width of the closed captions.
2. Confirm that the closed captions now display with the specified width as we have modified.
3. You’ll notice that the closed caption, originally formatted in two lines, is now seen in four lines, with the width adjusting accordingly.

Summary

By following these steps, you can effortlessly modify the width of closed captions using JavaScript in Articulate Storyline 360. This way, you can fine-tune the visual display of closed captions, ensuring they blend seamlessly with your project’s design and layout.

eLearning Services

Elearning Solutions
As an eLearning solutions provider, we offer comprehensive services tailored to meet your organization’s training and educational needs.

Learn more about our Elearning Solutions.

Elearning Translation and Localization 

As a leading e-learning translation and localization service provider, we specialize in adapting elearning content seamlessly across languages and cultures, ensuring your courses resonate effectively with diverse global audiences.

Learn more about our Elearning Translation and Localization.

Frequently Asked Questions (FAQs)

Q. Why would I need to customize the closed caption width in my articulate course?
A. Customizing the closed caption width allows you to better integrate captions into your course design. It can help improve readability, accommodate different screen sizes, and align captions with your overall visual layout.

Q. Can I customize closed caption width in both Articulate Storyline and Rise?
A. Yes, you can customize closed caption width in both Articulate Storyline and Rise using JavaScript. While the implementation specifics may vary slightly between the two tools, JavaScript can be used effectively in both environments to adjust caption widths dynamically.

Q. What JavaScript skills do I need to customize closed caption width in Articulate?
A. Basic knowledge of JavaScript is sufficient for customizing closed caption width in Articulate. Understanding how to manipulate DOM elements and style properties using JavaScript will be beneficial.

Q. How do I find the ID or class of the closed caption container in Articulate?
A. You can find the ID or class of the closed caption container by inspecting the HTML structure of your Articulate project using browser developer tools. Look for elements related to captions or consult Articulate’s documentation for specific identifiers.

Q. Can I animate or add effects to closed captions using JavaScript in Articulate?
A. Yes, JavaScript can be used to add animations or effects to closed captions in Articulate courses. However, consider accessibility implications and ensure that any animations or effects enhance rather than detract from the learning experience.

elearning development company

ARTICULATE STORYLINE POSTS

  • step-by-step guide to customize quiz feedback colors in rise 360
    How to Customize Correct and Incorrect Answers Feedback Colors in Articulate Rise 360June 27, 2025 - 4:40 PM
  • removing labels and numbers from process blocks in articulate rise 360
    How to Remove Labels and Numbers from Process Blocks in Articulate Rise 360June 20, 2025 - 3:07 PM
  • easy-online-course-creation-ispring-suite-swift-elearning-services
    Create Online Courses with Ease Using iSpring Suite – The All-in-One eLearning Authoring Tool for PowerPointJune 16, 2025 - 11:18 AM
  • how to adjust padding in articulate rise 360 content blocks for custom e-learning
    How to Adjust Padding in Articulate Rise 360 Content Blocks for Custom E-LearningJune 9, 2025 - 5:23 PM
  • swift elearning services focuses on crafting custom elearning courses that enhance digital learning experiences.
    How to Use Snapshots to Recover Deleted Lessons in Articulate Rise 360April 23, 2025 - 3:58 PM
  • swift elearning services provides articulate 360 localization, offering tailored elearning solutions that adapt your content for global audiences.
    Articulate 360 Localization: Create, Translate, and Manage Training with EaseApril 17, 2025 - 11:24 AM
  • custom elearning solution with jump-to-time video control in storyline 360 for interactive video navigation.
    How to Use Jump-to-Time Trigger to Control Video in Storyline 360April 11, 2025 - 10:51 AM
  • how to import slides from other storyline projects
    Articulate Storyline 360 – How to Import Slides from Other Storyline ProjectsMarch 25, 2025 - 5:52 PM
  • ohs-traffic-control-training-for-construction-workers-featured-image
    OHS – Traffic Control Training Course for Construction WorkersSeptember 9, 2024 - 5:56 PM
  • ohs-road-traffic-control-training-for-road-maintenance-workers-featured-image
    OHS – Traffic Control Work Zone Safety Training for Road Maintenance WorkersAugust 1, 2024 - 3:22 PM

Get a Free Prototype Customized with Your Content.

Our Portfolios Explore Our Extensive Collection of eLearning Courses.

GET A FREE ELEARNING SAMPLE

We transform your training material into engaging, SCORM-compliant courses.

Request a Free Sample  

Our Services


  • Rapid eLearning Solutions

  • Custom eLearning Development

  • Flash to HTML5 Conversion Services

  • Mobile Learning Solutions

  • Translation and Localisation Services

  • Gamification eLearning

Our Office Address

Asia: 704, Topaz Plaza, Punjagutta, Hyderabad, Telangana, India 500082

Australia: P.O. Box 107, Brisbane, Queensland, 4030

Canada: 750 Oakdale Rd Suite 56, North York, ON M3N 2Z4, Canada

USA: 12218 Old Gage Ranch, San Antonio, Texas 78245

Copyright ©2026 Swift eLearning Services.
  • Facebook
  • Twitter
  • LinkedIn
  • Youtube
Effective Use of Labeled Graphics in Modern E-Learning Designarticulate-challenge-464-thumbnailset-character-limit-using-javascript-in-articulate-storyline-360-featuredimageHow to Set Character Limit Using JavaScript in Storyline 360
Scroll to top