Video poster will not center on android

5 replies · opened Oct 14, 2016

HhenkvanmOct 14, 2016

Hi,

When I'm using the video slider, as you know it will show the video as an alternative.

This works fine on desktops, but only partly on android devices. It will fit vertically, but it won't center the image. As a result I can only see the left side of the image. See image. I could not test this on IOS.

Here's the code:

<!-- Slider
============================================= -->
<section id="slider" class="slider-parallax full-screen force-full-screen ohidden">

	&lt;div class="full-screen force-full-screen dark section nopadding nomargin noborder ohidden"&gt;

		&lt;div class="container center"&gt;
			&lt;div class="vertical-middle ignore-header"&gt;
				&lt;div class="emphasis-title"&gt;
					&lt;div class="col_full"&gt;[

attachment
](#)</div>
<h4>
<span class="text-rotater nocolor" data-separator="|" data-rotate="fadeIn" data-speed="3500">
<span class="t-rotate t300 font-body ls3">{% if entry.titel1|length %}{{entry.titel1}}{% endif %}{% if entry.titel2|length %}|{{entry.titel2}}{% endif %}{% if entry.titel3|length %}|{{entry.titel3}}{% endif %}</span>
</span>
</h4>
</div>

Leesmeer
</div>
</div>

		&lt;div class="video-wrap" style="background:"&gt;
			&lt;video poster="/images/hairidvideo.jpg" preload="auto" loop autoplay muted&gt;
				&lt;source src='http://www.hairid.be/images/hairid2.webm' type='video/webm' /&gt;
				&lt;source src='http://www.hairid.be/images/hairid.mp4' type='video/mp4' /&gt;
			&lt;/video&gt;
			&lt;div class="video-overlay" style="background-color: rgba(0,0,0,0.25);"&gt;&lt;/div&gt;
		&lt;/div&gt;
		
		[](#content)

	&lt;/div&gt;

</section><!-- #slider end -->

HhenkvanmOct 14, 2016

And the attachment would not upload, here it is

SSemicolon WebSTAFFOct 17, 2016

Hello,

Can you please provide us with a Live URL of the Issue so that we can check out the exact issue and provide you with a more accurate solution for this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

SSemicolon WebSTAFFOct 20, 2016

Hello,

Thank you so much for reporting this to us and We Really Apologize about the Inconvenience caused! Please find the following code in the style.css File:

.video-placeholder {
	z-index: 4;
	background-repeat: no-repeat !important;
}

and replace it with:

.video-placeholder {
	z-index: 4;
	background-repeat: no-repeat !important;
	background-position: center center;
	background-size: cover;
}

This will definitely fix your issue. Thanks for your Patience.

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

HhenkvanmOct 31, 2016

That worked thanks!

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard