Forum Discussion
Adjusting the width of closed captions
Hi Jodi,
Try using this script to modify the width of the caption div. By default, it's set to 60%, which is currently what you have in your project. You can decrease this percentage as needed.
const addCss = css => document.head.appendChild(document.createElement("style")).innerHTML=css;
addCss(".view-desktop .caption, .theme-unified .caption {width:60%;}");
- JodiSansone2 years agoCommunity Member
Thank you. I'll give it a try.
- JodiSansone2 years agoCommunity Member
Thank you, Nedim. It worked perfectly. I adjusted the width down a little more to fit my concept. I'm doing this for a demo that I'll post next week. I appreciate your help!
- TheresaAinswort13 hours agoCommunity Member
I would like to do this. Where would you put this script exactly? Do you have to put it on each slide? First slide of the project. New to this, so I would be grateful for any additional details on how to execute this.
Related Content
- 11 months ago
- 1 year ago