Forum Replies Created
-
in reply to: how to center codeless slider content (image/video)?
Hi,
unfortunately I didn’t hear back from support anymore and I am running out of time so I had to find a solution myself.
Simply by extending the existing “video-wrap” css-class I was able to achieve the desired affect of proper video scaling for the slider content.
The extending properties can be added to the custom css code box of the theme settings:.video-wrap video {
/* Set a min width and height of 100%. */
min-width: 100%;
min-height: 100%;
/* Setting the width and height to auto ensures uniform scaling. */
width: auto;
height: auto;
/* Center and position the video. */
position: absolute;
left: 50%;
/* Have to set the vertical transform to 0% for proper positioning. */
transform: translate(-50%, 0%);
}I am adding this here in case any one else comes across the same issue and needs a solution.
Nevertheless the theme’s author should include this in the base code of the theme.
Also, it should be noted that there are several alignment options for using still images in the slider but there are virtually none for properly positioning video. This can definitely use improvement.Cheers,
Ingoin reply to: how to center codeless slider content (image/video)?This reply has been marked as private.in reply to: how to center codeless slider content (image/video)?This reply has been marked as private.in reply to: how to center codeless slider content (image/video)?Hi,
I am not referring to any text but just the video itself.
Resizing the window doesn’t resize the video but only crops it from the right side to the left. The left side and top stays in place.Thanks.