Tengo un div contenedor de 1100 px y tres div adentro de 366 c/u, lo que necesito es que cuando mido menos de 1100 px el monitor se achiquen... Luego de mucha prueba y error lo logre con un slider que contiene 5 imágenes que está ubicado en el inicio y no he podido replicarlo en el otro div.. No se si me explico bien... Esta es la pagina de la que hablo
http://www.nachodelatorre.com.ar/pro...ive/index.html
Desde ya les agradezco muchisimo lo que puedan hacer por mi!
El codigo que uso en el css es:
Código CSS:
Ver original
@charset "utf-8"; /* CSS Document */ img { border: 0; } .slider{ display:block; position:relative; margin:auto; width:100%; max-width:1100px; max-height:550px; overflow:hidden; } .boton{ position: absolute; display: block; bottom: 15px; margin: 0; padding: 0; z-index: 999; cursor: pointer; opacity: 0; left: 1px; } .boton:nth-child(1){ left:15px; } .boton:nth-child(3){ left:45px; } .boton:nth-child(5){ left:75px; } .boton:nth-child(7){ left:105px; } .boton:nth-child(9){ left:135px; } .slider label{ position:absolute; bottom:15px; width:12px; height:12px; background: rgba (50,50,50,.5); border-radius:7px; z-index:100; border: 1px solid #777; } .slider label:nth-child(2){ left:15px; } .slider label:nth-child(4){ left:45px; } .slider label:nth-child(6){ left:75px; } .slider label:nth-child(8){ left:105px; } .slider label:nth-child(10){ left:135px; } .boton:checked + label{ background: rgba (0,0,0,.6); border-color: #eee; } .contenedor-img img { display: block; float: left; } .cinco-imagenes { width: 500%; } .cinco-imagenes img { width: 20%; } .contenedor-img { position: relative; left: 0; -webkit-transition: left .3s ease-in; -ms-transition: left .3s ease-in; -moz-transition: left .3s ease-in; -o-transition: left .3s ease-in; transition: left .3s ease-in; } .boton:nth-child(1):checked ~ .contenedor-img { left: 0; } .boton:nth-child(3):checked ~ .contenedor-img { left: -100%; } .boton:nth-child(5):checked ~ .contenedor-img { left: -200%; } .boton:nth-child(7):checked ~ .contenedor-img { left: -300%; } .boton:nth-child(9):checked ~ .contenedor-img { left: -400%; } .contenedorMenuPrincipal{ display: block; position: relative; margin: auto; width: 100%; overflow: hidden; } #contenedor-secundario { background:#000; width:1100px; } #contenedor-secundario div { float:left; background:#fff; width:366px; height:366px; } .menusuperior{ font-family:"Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif; font-size:20px; color:#999999; } .derechosreservados{ font-family:"Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif; font-size:12px; color:#999999; } .centrado { margin: 0 auto; width: 1100px; } a { font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif; font-size: 20px; color: #999999; } a:link { text-decoration: none; } a:visited { text-decoration: none; color: #999999; } a:hover { text-decoration: none; color: #EEEEEE; } a:active { text-decoration: none; color: #999999; } #menu { width: 740px; margin: 0 auto; } @media (min-width:1100px) { #menu { width: 1100px; } }
y el html
Código HTML:
Ver original
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="css/style.css"> <script type="text/javascript"> function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } </script> </head> <body onLoad="MM_preloadImages('img/btn_facebookB.png','img/btn_picassaB.png')"> <div id="menu" class="centrado"> <table border="0" cellpadding="0" cellspacing="0" class="contenedorMenuPrincipal"> <tr> </tr> <tr> </tr> </table> </div> <div class="slider"> <input type="radio" class="boton" name="boton" checked="checked"> <input type="radio" class="boton" name="boton"> <input type="radio" class="boton" name="boton"> <input type="radio" class="boton" name="boton"> <input type="radio" class="boton" name="boton"> <div class="contenedor-img cinco-imagenes"> <img src="img/slider1.jpg"> <img src="img/slider2.jpg"> <img src="img/slider3.jpg"> <img src="img/slider4.jpg"> <img src="img/slider5.jpg"> </div> </div> <table bgcolor="#FFFFFF" width="1100" border="0" cellspacing="0" cellpadding="0"> <tr> </tr> </table> <div class="centrado" id="contenedor-secundario"> </div> </body> </html>