This script will allow you to change the position of the media file to the center of the survey page in a Media question.
Example
You have a Media question with an uploaded video that you require to be centered when participants take the survey.
Details
- Create your Media question as required and upload your video or audio file.
- Copy the script below into Notepad or any other text editor (e.g. Notepad++, Textpad).
- Insert the completed script into the Scripting section of your Media question by doing the following:
- Select your Media question in the Questionnaire Tree.
- In the Scripting section of the question, click Edit Scripts.
- Paste the script into the Style tab.
- Click Save.
- Validate and test your survey.
<!--Script Name: How do I align the video in a Media question to the center of the page? To ensure your script works as expected, always copy the original script from the script library found in the support portal. Failure to use the most up to date script from the script library may cause unexpected results.--!> <style> div[id$='mediaContainer'] > div { display: inline-block; } div[id$='mediaContainer'] { text-align: center; } </style>
More Information
Read this WebHelp article to learn more about the Media-HTML5 question.
Comments
0 comments
Article is closed for comments.