Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/02/2018, 08:43
Avatar de ceaped
ceaped
 
Fecha de Ingreso: febrero-2004
Mensajes: 2.185
Antigüedad: 20 años, 3 meses
Puntos: 9
Pregunta Poner alto auto ajustable a cada tab

Buenos días
Utilizo esta galería:
https://codepen.io/frxnz/pen/arlxL

Pero cada "tab" tiene diferente alto.

Código CSS:
Ver original
  1. .slides .slide {
  2.     position: absolute;
  3.     top: 0;
  4.     width: calc(20% - 1em);
  5.     max-height: 3.5em;
  6.     margin: 0.5em;
  7.     padding: 0;
  8.     color: black;
  9.     float: left;
  10.     overflow: hidden;
  11.     background: #FFF;
  12.     transition: max-height 0.25s
  13.     ease-in-out, width
  14.     0.25s 0.25s ease-in-out, left
  15.     0.25s 0.5s  ease-in-out, top
  16.     0.25s 0.75s ease-in-out;
  17. }

Código CSS:
Ver original
  1. .slides .slide.active {
  2.     width: 100%;
  3.     max-height: 20em;
  4.     float: none;
  5.     position: absolute;
  6.     top: 4.5em;
  7.     left: 0;
  8.     background-color: #FFF;
  9.     transition:
  10.         top        0.25s 1s    ease-in-out,
  11.         left       0.25s 1.25s ease-in-out,
  12.         width      0.25s 1.5s  ease-in-out,
  13.         max-height 0.25s 1.75s ease-in-out;
  14. }


¿Cómo hago para que cada "tab" su alto se ajuste a su contenido?

Gracias por su ayuda
__________________
Diseñador Gráfico publicitario

Última edición por ceaped; 22/02/2018 a las 08:55 Razón: Agregar texto