Ver Mensaje Individual
  #6 (permalink)  
Antiguo 09/03/2013, 19:39
azael222
 
Fecha de Ingreso: enero-2011
Mensajes: 10
Antigüedad: 13 años, 3 meses
Puntos: 0
Respuesta: codigo css posicionar div

Aqui te dejo el html

Código HTML:
<div id="cp">
 
 
 
 
 <div id="songs"></div>
 <div id="songs"></div>
 <div id="songs"></div>
 <div id="songs"></div>
 
 <div id="clear"></div>
 
 <div id="sidebar2">
 
 <div id="promo_R1"></div>
 <div id="promo_R3"></div>
 <div id="promo_R3"></div>
 <div id="promo_R1"></div>
 <div id="promo_R2"></div>
 <div id="promo_R3"></div>
 
 <div id="clear"></div>
 
 </div> 
 
 </div> 


aqui esta el css del div#cp div#songs div#sidebar2:


Código CSS:
Ver original
  1. /*------------------------------------------empieza el div de las canciones para bajar---------------------------------*/
  2.        
  3. #cp{ float:left; background-color:#000; width:80%; height: auto; }
  4.  
  5. #songs { width: 800px; height: 200px; background-color:#666;  margin-bottom: 25px; }
  6.  
  7. /* --------------------------------termina el div central donde estan las canciones para bajar------------------------------*/
  8.  
  9. /* --------------------------------empieza el div sidebar2------------------------------*/
  10.  
  11. #sidebar2{ width: 200px; height:auto; float: right; border-width:thin;  border-style:dotted; }
  12.  
  13. #promo_R1{ width: 150px; height: 500px; background-color:#666; border-width:thin; border-style:dotted; border-color:#000;
  14.         margin-bottom: 15px; margin-left:25px; }
  15.        
  16. #promo_R2{ width: 150px; height: 200px; background-color: #FFF; border-width:thin; border-style:dotted; border-color:#000;
  17.         margin-bottom: 15px; margin-left:25px; }
  18.  
  19. #promo_R3{ width: 150px; height: 100px; background-color: #FFF; border-width:thin; border-style:dotted; border-color:#000;
  20.         margin-bottom: 15px; margin-left:25px; }
  21.        
  22. /*------------------------------------termina el el div sidebar2------------------------------*/