About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Responsive embed
Follow these steps to create a responsive embed
- Insert the player embed code into an HTML page
- Set the iframe tag’s
width
andheight
attributes to100%
inside of the embed code - Change iframe tag’s CSS position parameter to
absolute
and set the left and top css parameters to0
if needed - Add a div container around the iframe tag with the following css parameters where
padding-bottom
parameter’s value is calculated from the original proportions of the embedded content (eg. 9 / 16 = 0.5625)
<divid="Container"style="padding-bottom:56.25%; position:relative; display:block; width: 100%"><iframeid="UstreamIframe"src="https://video.ibm.com/embed/recorded/131906526"width="100%" height="100%"style="position:absolute; top:0; left: 0"