Tema: Div anidado
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/08/2015, 06:03
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: Div anidado

con css:
Código PHP:
Ver original
  1. <style>
  2. html, body{
  3.     height:100%;
  4. }
  5. body{
  6.     margin:0;
  7. }
  8. #a{
  9.     width:100%;
  10.     height:30%;
  11.    
  12.     background-color:rgba(0,67,123,1.00);
  13. }
  14. #b{
  15.     width:100%;
  16.     height:70%;
  17.    
  18.     background-color:rgba(255,110,0,1.00);
  19. }
  20. #c{
  21.     display:block;
  22.     position:relative;
  23.     float:left;
  24.    
  25.     width:50%;
  26.     height:100%;
  27.    
  28.     background-color:rgba(255,0,4,1.00);
  29.    
  30.     border-radius:200px;
  31. }
  32.    
  33. </style>
  34. <!--div superior-->
  35. <div id="a">
  36. </div>
  37.  
  38. <!--div inferior-->
  39. <div id="b">
  40.  
  41.     <!--div central-->
  42.     <div id="c">
  43.     </div>
  44.    
  45.     <div id="c">
  46.     </div>
  47.  
  48. </div>
__________________
[email protected]
HITCEL