Comunidad de diseño web y desarrollo en internet online

Problema colocar div's...

Citar            
MensajeEscrito el 20 Feb 2010 01:43 pm
Hola a todos:
Tengo un problema que no puedo solucionar, espero que me podáis ayudar...
Me gustaría poner una div al lado de la otra (como si fuesen dos columnas):
A) Texto: Una es un div con un scroll de jquerty
B) Slider: Es una div con Coda Slider también de jquerty

Primer està escrito la Slider y depués la Texto, pero Texto se situa abajo...

Código de Slider

Código :

/* Most common stuff you'll need to change */

   .coda-slider-wrapper { padding: 0 }
   .coda-slider { background-image: url(../img/bg.png) }
   
   /* Use this to keep the slider content contained in a box even when JavaScript is disabled */
   .coda-slider-no-js .coda-slider { height: 200px; overflow: auto !important; padding-right: 20px }
   
   /* Change the width of the entire slider (without dynamic arrows) */
   .coda-slider, .coda-slider .panel { width: 332px;  height:270px;} 
   
   /* Change margin and width of the slider (with dynamic arrows) */
   .coda-slider-wrapper.arrows .coda-slider, .coda-slider-wrapper.arrows .coda-slider .panel { width: 600px }
   .coda-slider-wrapper.arrows .coda-slider { margin: 0 10px }
   
   /* Arrow styling */
   .coda-nav-left a, .coda-nav-right a { background: #000; color: #fff; padding: 5px; width: 100px }
   
   /* Tab nav */
   .coda-nav ul li a.current { background: #39c }
   
   /* Panel padding */
   .coda-slider .panel-wrapper { padding: 16px; }
   
   /* Preloader */
   .coda-slider p.loading { padding: 16px; text-align: center }

/* Don't change anything below here unless you know what you're doing */

   /* Tabbed nav */
   .coda-nav ul { clear: both; display: block; margin: auto; overflow: hidden }
   .coda-nav ul li { display: inline }
   .coda-nav ul li a { background: #000; color: #fff; display: block; float: left; margin-right: 1px; padding: 3px 6px; text-decoration: none }
   
   /* Miscellaneous */
   .coda-slider-wrapper { clear: both; overflow: auto; margin-left:288px; }
   .coda-slider { float: left; overflow: hidden; position: relative }
   .coda-slider .panel { display: block; float: left }
   .coda-slider .panel-container { position: relative }
   .coda-nav-left, .coda-nav-right { float: left }
   .coda-nav-left a, .coda-nav-right a { display: block; text-align: center; text-decoration: none }
   


Código Texto

Código :

/* text style */
#text{
width:272px;
height:270px;
overflow:scroll;
padding:16px 0 16px 16px;
background:url(../img/bg.png);
float:left;
position: relative;
top:-100%;
}


No se si me he expresado bien, espero que me puedan ayudar! Gracias!!!

Por hector_he

9 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 08 Mar 2010 04:24 am
.coda{
width:300px;
height:400px;
float:left;
background-color:#09F;
}
.text{
width:300px;
height:400px;
float:left;
background-color:#999;
overflow:scroll;
}


<body>

<div class="text"></div>
<div class="coda"></div>

</body>

(y)

Por rcarlos3

21 de clabLevel



 

firefox

 

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