Comunidad de diseño web y desarrollo en internet online

AYUDA maquetacion y texto en CSS

Citar            
MensajeEscrito el 06 May 2010 04:35 pm
Hola, soy novato con CSS e intuitivamente y leyendo lo que pude fui crendo una pagina en CSS pero hasta aqui llegué y no se como arreglar esto y si será sencillo. La parte roja irian jpg para cubrir el diseño y me digo, waaaw ya sé hacer maquetacion en CSS, con las imagenes y 2 cajas contendoras para el texto READY TO GO!,.... pero... resulta que cuando agregué el texto en las 2 cajas contenedoras se me desplazaron las cajas, porqué? Adjunto HTML y CSS, desde ya muchas gracias :D





Código HTML :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 

<html> 
<head> 
  <title>Prueba</title>  

<link href="Untitled-5.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><style type="text/css">

</style></head> 

<body> 

<div id="content"> 
  <div id="cabecera">&aring;</div> 
  <div id="lhs"></div> 
  <div id="contenido">
    <p>    
    <p>bus consectetuer nunc Nunc sapien nunc. Est id lacinia elit nunc porttitor orci faucibus nibh cursus molestie. </p>
<p>Convallis orci orci dapibus sit id Nam congue iaculis nibh ante. Lacus sed Nam montes interdum et vel enim tristique risus montes. Orci ipsum nec suscipit elit convallis fringilla iaculis et amet leo. Ut congue id Mauris eros neque neque a gravida vel consequat. Ut nunc dictum Cras habitasse neque Curabitur et volutpat nulla dolor. Pretium molestie justo.</p>
<p>Morbi quis eget et justo porttitor tortor ac sed odio amet. Condimentum ultrices In Donec libero dolor tincidunt consequat pretium convallis Nam. Purus purus neque enim adipiscing eros at tellus consectetuer Ut tellus. </p>
<p>Et elit ac Sed et Nulla magna et malesuada orci sagittis. Sit id lorem fermentum Integer id Quisque Phasellus et Curabitur orci. Consectetuer justo risus sed Cras Curabitur In tellus lorem pretium Morbi. Nibh molestie urna rutrum vitae pede urna id faucibus gravida nulla. Nisl libero senectus parturient at auctor.</p>
<p>Interdum et Vivamus orci et sodales mattis dolor auctor odio vestibulum. Orci Proin Curabitur mauris tincidunt ultrices libero orci quis Phasellus id. Cursus pellentesque Vestibulum sit quis sapien tempus odio facilisis eu ipsum. In mauris tristique In et condimentum dolor leo Curabitur id consequat. Dui amet euismod ultrices tortor odio tempus.</p>
<p>At nibh molli </strong><a href="http://www.ddd.com" target="_blank">www.dddd.com</a><br />
      <strong>Email:</strong> <a href="mailto: [email protected]" target="_blank">[email protected]</a>
    </p>
  </div> 
  <div id="rhs"></div> 
  <div id="mb"></div>
 
  <div id="pie"></div> 
  <div id="contenido2"> <p><strong>XXXXXXXX:</strong><br />
      Xxxxxx -&nbsp; xxx xxXXXX  – <br />
      XXXX xXXXXXxx  x<br />
    </span><span class="bold">informacion: </span><a href="http://www.ddd.com/outlets.html" target="_blank">www.ddd.com/outlets.html</a></p>   </div>
   <div id="brhs"></div> 
  
</div> 

</body> 
</html> 

Código :

@charset "UTF-8";
/* CSS Document */

<style> 
   body { 
    margin:0; 
    padding:0; 
    text-align:left; 
   } 
   
   body,td,th {
   font-size: 11.8px;
   font-family: Georgia, Times New Roman, Times, serif;
}
a {
   font-family: Georgia, Times New Roman, Times, serif;
   font-size: 11.8px;
}
a:link {
   text-decoration: none;
   color: #09C;
}
a:visited {
   text-decoration: none;
   color: #06C;
}
a:hover {
   text-decoration: none;
   color: #FFF;
}
a:active {
   text-decoration: none;
}
.white {
   color: #FFF;
}
.bold {
   font-weight: bold;
   color: #FFF;
}
body {
   background-color: #2e2209;
}

   #content { 
    text-align:centre; 
    margin:auto; 
    background-color:#CCC;
    width:900px; 
    height:1100px; 
   } 

   #cabecera { 
    width: 900px; 
    height:321px;
   background-image:
   url(imagesnl/top.jpg);
   
   
   
    background-color:#f00; 
   } 

   
   #lhs { 
    width:116px; 
    height:339px; 
float:left;

   background-image:url(imagesnl/lhs.jpg);
   
    background-color:
   #F00;
   
   
   } 
   
    #contenido {
   width:790px;
   height:339px;
   background-color:#eff8aa;
   text-align: left;
 vertical-align: text-top;

   
   
   
   
   } 
   
    
    #rhs {
   width:110px;
   height:779px;
   
   float:right;
   background-image:url(imagesnl/rhs.jpg);
   margin-top:-339px;
   
    background-color:
   #F00;
   
   } 
   
   
   #mb { 
    width:790px; 
    height:262px; 

   background-image:
   url(imagesnl/mb.jpg);
   
    background-color:
   #F00;
   
  
   
   } 

   #pie { 
    
    width:433px; 
    height:178px;
   background-image:url(imagesnl/bhs.jpg);
   float:left;
   
    background-color:
   #F00;
   } 
   
    #contenido2 {
   width:357px;
   height:110px;
   background-color:#eff8aa;
   margin-left:433px;
   
   
   
   
   } 
   
    #brhs {
   width:357px;
   height:74px;
   
   margin-left:433px;
   background-image:url(imagesnl/brhs.jpg);
   
    background-color:
   #F00;
   
   
   
   } 

</style>          

Por Gabrielc

39 de clabLevel



 

safari
Citar            
MensajeEscrito el 06 May 2010 04:39 pm
Fijense, si les quitan el TEXTO de las cajas contenedoras la maqueta queda perfecta.... :(

Por Gabrielc

39 de clabLevel



 

safari
Citar            
MensajeEscrito el 06 May 2010 04:40 pm
Tambien se genera una letra å arriba a la izquierda, porqué será? 10000 gracias.

Por Gabrielc

39 de clabLevel



 

safari
Citar            
MensajeEscrito el 06 May 2010 08:05 pm
me autorespondo, pude solucionar ese problema de diferencia con un margin-top:-12.5px; en #contenido del CSS.

Pero ahora el problema es que se me ve bien en MAC FF, CHROME, SAFARI, PC, FF, CHROME, pero fijense como se me ve en "nuestro amigo" IE8, cómo puedo corregirlo?

http://www.marywarddocumentary.com/mwnewsletterb.html

Por Gabrielc

39 de clabLevel



 

safari
Citar            
MensajeEscrito el 06 May 2010 08:08 pm
aqui va de nuevo el CSS, como ven le puse un html>body #content, hubo un poco mas de compatibilidad en IE8 pero es insuficiente.


Código HTML :

@charset "UTF-8";
/* CSS Document */

<style> 
   body { 
    margin:0; 
    padding:0; 
    text-align:left; 
   } 
   
   body,td,th {
   font-size: 12.5px;
   font-family: Georgia, Times New Roman, Times, serif;
}
a {
   font-family: Georgia, Times New Roman, Times, serif;
   font-size: 12.5px;
}
a:link {
   text-decoration: none;
   color: #09C;
}
a:visited {
   text-decoration: none;
   color: #06C;
}
a:hover {
   text-decoration: none;
   color: #FFF;
}
a:active {
   text-decoration: none;
}
.white {
   color: #FFF;
}
.bold {
   font-weight: bold;
   color: #FFF;
}
body {
   background-color: #2e2209;
}

html>body #content { 
    text-align:centre; 
    margin:auto; 
    background-color:#CCC;
    width:900px; 
    height:1100px; 
   } 

#cabecera { 
    width: 900px; 
    height:321px;
   background-image:
   url(imagesnl/top.jpg);
   
   
   
    background-color:
   #2e2209;
    /* display:inline;  se usa en este caso para corregir un error en IE, en la interpretación del margin y el padding, si flotamos a la izquierda, y hay 10px de margin a la izquierda, IE sumara el doble de ese margen. Con esta linea corregimos eso.*/
   } 

   
 #lhs { 
    width:116px; 
    height:339px; 
float:left;

   background-image:url(imagesnl/lhs.jpg);
   
    background-color:
   #2e2209;
   
   
   } 
   
 #contenido {
   width:790px;
   height:339px;
   background-color:#edd8a7;
   text-align: left;
 vertical-align: text-top;
 margin-top:-12.5px;

   
   
   
   
   } 
   
    
 #rhs {
   width:110px;
   height:779px;
   
   float:right;
   background-image:url(imagesnl/rhs.jpg);
   margin-top:-339px;
    background-color:
   #2e2209;
   
   
   } 
   
   
 #mb { 
    width:790px; 
    height:262px; 

   background-image:
   url(imagesnl/mb.jpg);
   
    background-color:
   #2e2209;
  
   
   } 

 #pie { 
    
    width:433px; 
    height:178px;
   background-image:url(imagesnl/bhs.jpg);
   float:left;
    background-color:
   #2e2209;

   } 
   
#contenido2 {
   width:357px;
   height:104px;
   background-color:#000101;
   margin-left:433px;
   
   
   
   
   
   } 
   
 #brhs {
   width:357px;
   height:74px;
   
   margin-left:433px;
   background-image:url(imagesnl/brhs.jpg);
   
    background-color:
   #2e2209;
   
   
   } 

</style>          

Por Gabrielc

39 de clabLevel



 

safari

 

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