Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/02/2009, 09:57
jplazavidaurre
 
Fecha de Ingreso: diciembre-2008
Ubicación: Francia
Mensajes: 47
Antigüedad: 15 años, 4 meses
Puntos: 0
De acuerdo Respuesta: Resaltar pestaña de página actual en unas falsas-frames hechas con php

Hola,

Os agradezco mucho la ayuda. Con gente así da gusto aprender. En breve recupero el trabajo (estoy en paro) y la verdad es que estoy aprendiendo mucho, aunque esto de las webs nada tiene que ver conmigo.

Os quiero hacer otra pregunta. Mi código css es este que os paso, y los menús de la izda. (div= menus_izda) no sé porqué me quedan debajo del centro donde van los textos (div= centro) en vez de a la izquierda. Este css lo he sacado de un ejemplo para estudiar y no sé que hago mal. Lo he modificado un poco e igual me he cargado algo. No sé.

Tengo un encabezamiento, un espacio central, uno a la izquierda del central (estos dos bajo el encabezamiento) y un pie.

Si me pudieseis ayudar os lo agradeceré mucho.

Código:
body{

margin: 10px 0 10px 0;

padding:0;

text-align:center;

background: #003300 url(images/bg.jpg) repeat-x;

background-attachment: fixed;

letter-spacing: 1px;

}



#pagewidth{

width:800px;

background-color: #fff;

border: 4px solid #fff;

text-align:left;

margin-bottom: 10px;

margin-left:auto;

margin-right:auto;

font-family: Arial, Lucida Grande, Verdana, Helvetica, sans-serif; /* Lucida Grande para Macs, Tahoma para PCs */

font-size: 13px;

line-height: 1.6em;

color: #000;

}

#header{

position: relative;

height: 150px;

width: 100%;

background: url(images/banner.jpg) no-repeat 0% 0%;

}



.title {

margin: 0;

padding: 32px 0 0 78px;

color: #fff;

font-size: 26px;

font-weight: bold;

letter-spacing: 1px;

}



#menus_izda{

width:200px;
position: relative;
float:left;

background-color:#fff;

}

/* NAVEGACIÓN IZQUIERDA */

#menu1 {

width: 200px;

float: left;

}

#menu1title {

margin: 0;

background-image: url(images/bg_green.gif);

padding: 2px 0 0 10px;

width: 180px;

height: 18px;

color: #fff;

font-size: 14px;

font-weight: bold;

text-transform: uppercase;

letter-spacing: 1px;

line-height: normal;

}



#menu1 ul {

list-style: none;

margin: 0;

padding: 0;

}



#menu1 li a:link, #menu1 li a:visited {

width: 164px;

\width: 190px;

w\idth: 164px;

display: block;

color: #000;

margin-left: 0px;

padding: 5px 0 0 26px;

font-weight: bold;

outline: none;

background: url(images/bg_nav.gif) repeat-y;

}



#menu1 li a:hover {

color: #000;

padding: 5px 0 0 26px;

text-decoration: none;

background: #fff url(images/bg_nav_over.gif);

background-repeat: no-repeat;

}



/* COMIENZO DE SUB-LINKS */



#menu1 ul ul li {margin: 0;padding: 0;}



#menu1 ul ul a:link,#menu1 ul ul a:visited

{

display: block;

padding: 5px 0 0 40px;

width: 150px;

color: #cc0000;

text-decoration: underline;

font-size: 11px;

}



#menu1 ul ul a:hover

{

background-image: none;

color: #eb9999;

text-decoration: none;

background: url(images/bg_nav.gif) repeat-y;

}



/* FINAL DE SUB-LINKS */



/* NAVEGACION SUPERIOR */



#menu2 {

margin: 0 0 12px 0;

float:right;

width:100%;

font-size:93%;

line-height:normal;

border-bottom: 1px solid #598C01;

}



#menu2 ul {

margin:0;

padding:10px 0 0 50px;

list-style:none;

}



#menu2 li {

display:inline;

margin:0;

padding:0;

}



#menu2 a {

float:right;

background:url("images/tab_left.gif") no-repeat left top;

margin:0;

padding:0 0 0 4px;

text-decoration:none;

width: 100px;

}



#menu2 a span {

float:right;

display:block;

background:url("images/tab_right.gif") no-repeat right top;

padding:5px 8px 4px 6px;

color:#fff;

text-align: center;

}



/* Commented Backslash Hack hides rule from IE5-Mac \*/

#menu2 a span {float:none;}

/* End IE5-Mac hack */

#menu2 a:hover span {

color:#FFF;

}



#menu2 a:hover {

background-position:0% -42px;

}



#menu2 a:hover span {

background-position:100% -42px;

}



#menu2 #current a {

background-position:0% -42px;

}

#menu2 #current a span {

background-position:100% -42px;

}



a {

color: #235000;

text-decoration: underline;

font-weight: bold;

outline: none;

}



a:hover {

color: #9EC630;

text-decoration: none;

}



#list

{

margin-left: 20px;

padding-left: 0;

list-style: none;

}



#list li

{

position: relative;

padding-left: 16px;

background-image: url(images/list.gif);

background-repeat: no-repeat;

background-position: 0 .5em;

}



.borders {

border: 1px solid #000000;

}



#centro{

background-color: #fff;

float: right;

display:inline;

position: relative;

width:580px;

height: 100%;

}



h1,h2,h3 {

margin: 0 20px 5px 20px;

font-size: 22px;

font-weight: normal;

color: #598C01;

letter-spacing: 3px;

line-height: normal;

}



h4 {

margin: 10px 0 0 0;

padding: 4px 0 4px 6px;

font-size: 14px;

font-weight: normal;

color: #000;

letter-spacing: 2px;

line-height: normal;

background: #DCF4C2 url(images/arrow.gif) no-repeat;

background-position: right;

}



#text{

padding: 0 20px 20px 20px;

}



#footer {

padding: 20px 0 20px 0;

background-color:#fff;

clear: both;

text-align: center;

}



.clearfix:after {

content: ".";

display: block;

height: 0;

clear: both;

visibility: hidden;

}



.clearfix{display: inline-table;}



/* Hides from IE-mac \*/

* html .clearfix{height: 1%;}

.clearfix{display: block;}

/* End hide from IE-mac */