Friday, November 26, 2010

When Do You Know When A Scorpio Man Is Into You

Website with a background video using HTML 5

With the advent of HTML 5 and new tags can easily create pages multimedia web content that was previously only possible with a flash plugin. Here you can see an example in which you play a HD video background of a web page. The video uses

\u0026lt;video> tag of HTML 5 and the rest are styles.





The page code:

\u0026lt;! DOCTYPE HTML>
\u0026lt;html>
\u0026lt;head>
\u0026lt;title> ; Web video de fondo</title>
<style type="text/css" media="screen">
body{
margin:0px;
background-color: #000000;
}
#contenedor{
width:100%;
height:100%;
position:absolute;
top:0px;
left:0px;
}
#video{
width:1280px;
height:720px;
position: absolute;
vertical-align: middle;
top: 50%;
left: 50%;
margin-left:-640px;
margin-top:-360px;

} # box {
position: absolute;
width: 400px;
height: 300px;

background: rgba (0,0,0,0.50)
border: 1px solid rgba (255,255,255,0.75)
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
padding: 10px;
top:50%;
left:50%;
margin-left: -200px;
margin-top: -150px;
padding: 40px;

}
.clearBoth{
clear:both;
}

h1,h2,p {
   color: white;
}
h2.right{
float:right;
}

</style>
\u0026lt;/ head>
\u0026lt;body>
\u0026lt;div id="contenedor">
\u0026lt;div id="video">
\u0026lt;video src = " video.mp4 "width =" 1280px "height =" 720px "autoplay =" autoplay "loop =" loop ">
\u0026lt;/ video>
\u0026lt;br class="clearBoth">
\u0026lt;/ div> \u0026lt;div id="cuadro">

Web \u0026lt;h1> with a video background \u0026lt;/ h1>
\u0026lt;p>
This is a demonstration of what the label can \u0026lt;video> HTML5. In this case we have a video background HD. \u0026lt;br/> The code is very simple: \u0026lt;/ p>
\u0026lt;code>
\u0026lt;video src = "video.mp4" width = "1280px" height = "720px" autoplay = "autoplay" loop = "loop">
\u0026lt;/ video>
\u0026lt;/ code>
\u0026lt;/ p>
\u0026lt;p> everything else CSS. \u0026lt;/ p>
\u0026lt;h2 class="right"> http://trombotic.blogspot.com/ \u0026lt;/ h2>
\u0026lt;/ div>
\u0026lt; ; / div>
\u0026lt;/ body>
\u0026lt;/ html>

0 comments:

Post a Comment