Comunidad de diseño web y desarrollo en internet online

<video> no ajusta a la pantalla

Citar            
MensajeEscrito el 02 Feb 2012 07:09 am
Tengo una web con un video de fondo, pero no se ajusta bien en todos los exploradores, aveces se ve diferente en "Mozilla Firefox, Google Chrome, Opera"

el link es el siguiente: www.radiomyhouse.com/ya

Por miguelsirna

315 de clabLevel



Genero:Masculino  

Hacker & Programmer

firefox
Citar            
MensajeEscrito el 02 Feb 2012 05:15 pm
Cuidado con utilizar porcentajes y más en un video, ya que el width va directamente proporcional al height y viceversa. ¿Qué problemas tienes? ¿Es el ancho al que te refieres? Toma unas capturas para poder ayudarte más.

Saludos.

Por Kinduff

Claber

3563 de clabLevel

21 tutoriales
3 articulos

 

web dev wizzard

chrome
Citar            
MensajeEscrito el 02 Feb 2012 09:22 pm
Con mi CSS:


Con el CSS original:


Al parecer el video se mete un poco, no se porque

Por miguelsirna

315 de clabLevel



Genero:Masculino  

Hacker & Programmer

firefox
Citar            
MensajeEscrito el 02 Feb 2012 11:20 pm
Pega aquí el estilo de la sección del video original y tu modificación. Debe de haber algún margen que se te resbaló.

Por Kinduff

Claber

3563 de clabLevel

21 tutoriales
3 articulos

 

web dev wizzard

chrome
Citar            
MensajeEscrito el 03 Feb 2012 02:15 am
CODIGO HTML:

Código HTML :

<div id="hero-wrapper">
   <div id="mensajes" style="z-index:1;filter:alpha(opacity=77);float:left;-moz-opacity:.77;opacity:.77">
      <fb:live-stream event_app_id="208194232592753" width="380" height="660" always_post_to_friends="false" via_url="http://www.radiomyhouse.com"></fb:live-stream>
   </div>
   <div class="video">
      <video autoplay="yes" id="home_video" class="video" loop="loop">
            <source src="http://www.teehanlax.com/wp-content/themes/teehan-lax/resources/video/1.mp4"/>
            <source src="http://www.teehanlax.com/wp-content/themes/teehan-lax/resources/video/1.ogv" type='video/ogg; codecs="theora, vorbis"'/>
            <img src="http://www.teehanlax.com/wp-content/themes/teehan-lax/resources/video/1.jpg" id="header_video_img">
      </video>
   </div>
</div>


CODIGO CSS

Código :

div.video {position: absolute;top: 0;left: 0;width: auto;height: 510px;overflow: hidden;}
video#home_video_2,video#home_video_3 {display: none;}
div.video img {width: 100%;height: 510px;}

@media screen and (min-width: 1145px) and (max-width: 1279px) {
div.video {width: 100%;height: auto;}
div.video video { width: 100%; height: auto}
} 

@media screen and (min-width: 1280px) and (max-width: 1420px) {
div.video {height: 660px !important;width: auto;}
div.video video { height: 100% !important; width: auto}
}

@media screen and (min-width: 330px) and (max-width: 1024px) {
div#hero-wrapper {width: 488px;}
div.video {height: 100%;width: auto;}
}

@media screen and (min-width: 1025px) and (max-width: 1279px) {
div#hero-wrapper {width: 680px;}
div.video {width: auto;height: 100%;}
}

@media screen and (min-width: 1280px) and (max-width: 1879px) {
div#hero-wrapper {width: 919px}
div.video {position: absolute;top: 0;left: 0;width: 100%;height: 660px;}
div.video video { width: 100%; height: auto;}
}

@media screen and (min-width: 1880px) and (max-width: 2119px) {
div#hero-wrapper {width: 1600px;}
div.video {width: 100%;height: 710px;}
div.video video { width: 100%; height: auto;}
}

@media screen and (min-width: 2120px) {
div#hero-wrapper {width: 1840px;}
div.video {width: 100%;height: 710px;}
div.video video { width: 100%; height: auto}
}

.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }

Por miguelsirna

315 de clabLevel



Genero:Masculino  

Hacker & Programmer

chrome

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.