Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how to write text on video in html

.container { position:relative; }
.container video {
    position:relative;
    z-index:0;
}
.overlay {
    position:absolute;
    top:0;
    left:0;
    z-index:1;
}
Comment

how to write text on video in html

<div class="container">
    <video id="video" width="770" height="882" onclick="play();">
        <source src="video/Motion.mp4" type="video/mp4" />
    </video>
    <div class="overlay">
        <p>Content above your video</p>
        <form>
            <p>Content Below Your Video</p>
            <label for="input">Form Input Label</label>
            <input id="input" name="input" value="" />
            <button type="submit">Submit</button>
        </form>
    </div>
</div>
Comment

PREVIOUS NEXT
Code Example
Css :: link to css file within another css file 
Css :: the other div inline-block is in bottom 
Css :: how to set font max width in css 
Css :: print media css 
Css :: clearfix css 
Css :: media screen 
Css :: css select every other element 
Css :: css unlock scroll 
Css :: css p tag text wrap 
Css :: change height of range slider html 
Css :: css media query 
Css :: transition shorthand css 
Css :: slickjs height 
Css :: gameloop programming language 
Css :: have an item span multiple columns css grid 
Css :: box shadow transperent 
Css :: break pre text 
Css :: media query min max 
Css :: degradado color css 
Css :: border color transparent 
Css :: background degrade 
Css :: less calc with variable 
Css :: remove hover css on a text 
Css :: circle button html 
Css :: hide input border on focus 
Css :: html disable spin buttons on input type number 
Css :: responsive flexbox in css 
Css :: all.min.css cdn 
Css :: how to set the scroll in bootstrap4 table body 
Css :: how to use gradient on font css? 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =