Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67469

Embed html5 video in Template / Change image for video

$
0
0

I'm new here and still learning how to write html and css. I'm making my portfolio from a template. Now I have some moving images I want to embed and used gif images. Only they get way too large, so I wanted to switch to html5 video.

Only when I change the <img to <video the whole gallery collapses. So I guess the css doesn't support html5 video.

This is the html right now:

<div class="ms-section__block">
          <div id="gallery">
            <img alt="image 2"
            src="assets/images/gallery/social/gif2.gif"
            data-description="image placeholder"> 
            <img alt="image 2"
            src="assets/images/gallery/social/gif2.gif"
            data-description="image placeholder"> 
            <img alt="image 2"
            src="assets/images/gallery/social/gif2.gif"
            data-description="image placeholder"> 

CSS MAIN:

.ms-section__block {
    width: 85%;
    max-width: 88em;
    margin: 0 auto 6em;

This is the only thing I can find that is connected to the html code. But again. I'm a total noob and hope you guys can help me how to change the working .gif with .mp4 to reduce file size.

Lucas

The template i'm using is Emily - Creative Photography Portfolio


Viewing all articles
Browse latest Browse all 67469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>