Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/01/2014, 14:22
Sephys
 
Fecha de Ingreso: enero-2014
Mensajes: 11
Antigüedad: 10 años, 2 meses
Puntos: 0
Respuesta: Sidebar fixed

El HTML es el de la pagina de [URL="http://www.csszengarden.com/"]http://www.csszengarden.com/[/URL].El que pone HTML File

Luego mi codigo de CSS

Código CSS:
Ver original
  1. * {
  2.   margin:0px;
  3.   padding:0px;
  4. }
  5.  
  6. @font-face
  7. {
  8.   font-family:WendyOne-Regular;
  9.   src: url('WendyOne-Regular.ttf');
  10. }
  11.  
  12. @font-face
  13. {
  14.   font-family: SONIC;
  15.   src: url('SONIC.ttf');
  16. }
  17.  
  18. @font-face
  19. {
  20.   font-family:Loveyalikeasister;
  21.   src: url('LoveYaLikeASister.ttf');
  22. }
  23.  
  24. .page-wrapper{
  25.   width:1260px;
  26.   position:absolute;
  27.   background-image:url('fondopaginaprincipal.png');
  28.   background-attachment:fixed;
  29.  
  30. }
  31.  
  32. .page-wrapper p{
  33.   margin-right:20px;
  34. }
  35.  
  36. .page-wrapper a:link{
  37.   color:#0D7094;
  38. }
  39.  
  40. .page-wrapper a:hover{
  41.   color:#9b4e52;
  42. }
  43.  
  44. #zen-intro{
  45.   width:1249px;
  46.   position:relative;
  47.   float:right;
  48. }
  49.  
  50. header{
  51.   width:230px;
  52.   height:110px;
  53.   position:fixed;
  54.   float:left;
  55.   background-color:#F2EAEA;
  56.   top:30px;
  57.   margin:auto;
  58.   border-radius: 25px;
  59.   box-shadow: 0px 0px 6px 0px #0D0D0C;
  60. }
  61.  
  62. header h1{
  63.   margin-top:8px;
  64.   margin-left:15px;
  65.   font-family:WendyOne-Regular;
  66.   font-size:30px;
  67.   color:#9b4e52;
  68. }
  69.  
  70. header h2{
  71.   font-family:SONIC;
  72.   font-size:6px;
  73.   margin-left:12px;
  74.   margin-top:0px;
  75. }
  76.  
  77. #zen-summary {
  78.   width:950px;
  79.   position:relative;
  80.   float:right;
  81.   margin-left:350px;
  82. }
  83.  
  84. #zen-summary p:first-child {
  85.   margin-top:40px;
  86. }
  87.  
  88. #zen-summary p {
  89.   font-family:SONIC;
  90.   font-size:10px;
  91.   color: #0D7094;
  92. }
  93.  
  94. #zen-preamble{
  95.   width:950px;
  96.   position:relative;
  97.   float:right;
  98. }
  99.  
  100. #zen-preamble h3{
  101.   margin-top:30px;
  102.   font-family:Loveyalikeasister;
  103.   font-size:25px;
  104.   color:#9b4e52;
  105. }
  106.  
  107. #zen-supporting{
  108.   width:950px;
  109.   position:relative;
  110.   float:right;
  111.   margin-left:300px;
  112. }
  113.  
  114. #zen-supporting h3{
  115.   font-family:Loveyalikeasister;
  116.   font-size:25px;
  117.   color:#9b4e52;
  118. }
  119.  
  120. #zen-supporting div{
  121.   margin-top:20px
  122. }
  123.  
  124. footer{
  125.   width:250px;
  126.   position:relative;
  127.   margin:auto;
  128.   padding:40px;
  129. }
  130. nav{
  131.   width:200px;
  132. }
  133. .sidebar{
  134.   width:220px;
  135.   position:fixed;
  136.   float:none;
  137.   margin-top:150px;
  138. }
  139.  
  140. .sidebar a:link{
  141.   color:#000000;
  142. }
  143.  
  144. .sidebar a:hover{
  145.   color:#9b4e52;;
  146. }
  147.  
  148. .wrapper{
  149.   position:fixed;
  150.   margin-left:15px;
  151. }
  152.  
  153. .wrapper h3{
  154.   font-family:SONIC;
  155.   font-size:8px;
  156.   color:#9b4e52;
  157. }
  158.  
  159. .wrapper div{
  160.   margin-top:20px;
  161. }
  162.  
  163. .wrapper ul {
  164.   list-style-type:none;
  165. }
  166.  
  167. .wrapper li {
  168.   font-family:Loveyalikeasister;
  169.   font-size:15px;
  170. }

Como digo, las modificaciones solo deben ser en CSS, no puedo tocar el HTML, ya que es una practica de CSS, ni poner nada Javascript ni sucedáneo, más que nada porque aún no lo hemos aprendido xD.

Gracias por la bienvenida y la respuesta :D

Última edición por Sephys; 29/01/2014 a las 14:25 Razón: Error en el link