CSS variables not defined
-
The default CSS for the button alignment says –aspect-ratio-height and -aspect-ratio-width are not defined, and the play button sits at the top of the image. I’m using a Vimeo video with a custom thumbnail and have checked on multiple browsers.
top: calc(((var(--aspect-ratio-height) / var(--aspect-ratio-width))* 50cqw) -(0.5* var(--hd-play-button-size)));
Have you considered this simpler approach? The transform property moves the element back up by 50% of its own height and left by 50% of its own width.
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.