Hola !!! Estoy peleando con esto y ya no se para donde correr. Ojala alguien me pueda destrabar!
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>
<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];}
}
<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"> <td width="300" height="120" align="left" valign="top"><a href="index.html"><img src="img/logoCoffeeArriba.png" width="250" height="120"></a></td> <td width="300" height="120" align="right" valign="bottom"><span class="menusuperior"><a href="#">nosotros
</a></span></td> <td width="120" height="120" align="center" valign="bottom"><span class="menusuperior"><a href="#">locales
</a></span></td> <td width="80" height="120" align="center" valign="bottom"><span class="menusuperior"><a href="#">prensa
</a></span></td> <td width="100" height="120" align="center" valign="bottom"><span class="menusuperior"><a href="#">premios
</a></span></td> <td width="100" height="120" align="center" valign="bottom"><span class="menusuperior"><a href="#">contacto
</a></span></td> <td width="50" height="120" align="center" valign="bottom"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','img/btn_facebookB.png',1)"><img src="img/btn_facebook.png" alt="Facebook" width="43" height="43" id="Image8"></a></td> <td width="50" height="120" align="center" valign="bottom"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','img/btn_picassaB.png',1)"><img src="img/btn_picassa.png" alt="Picassa" width="43" height="43" id="Image9"></a></td> <td height="20" align="left" valign="top"> </td> <td height="20" align="center"> </td> <td height="20" align="center"> </td> <td height="20" align="center"> </td> <td height="20" align="center"> </td> <td height="20" align="center"> </td> <td height="20" align="center"> </td> <td height="20" align="center"> </td>
<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">
<table bgcolor="#FFFFFF" width="1100" border="0" cellspacing="0" cellpadding="0"> <td height="20"> </td>
<div class="centrado" id="contenedor-secundario"> <div id="nosotros"><a href="#"><img src="img/nosotros.jpg" width="367" height="366"></a></div> <div id="lookboos"><a href="#"><img src="img/plano_lookbooks.png" width="366" height="366"></a></div> <div id="catalogo"><a href="#"><img src="img/catalogo.jpg" width="366" height="366"></a></div>