Foros del Web » Creando para Internet » HTML »

No me reconoce el archivo "estilo.css"

Estas en el tema de No me reconoce el archivo "estilo.css" en el foro de HTML en Foros del Web. Hola a todos. Tengo un script en XHTML y un archivo estilo.css que se encuentra en la carpeta "Css", sin embargo cuando invoco a estilo.css ...
  #1 (permalink)  
Antiguo 26/05/2006, 15:51
Avatar de gabyweb  
Fecha de Ingreso: enero-2002
Ubicación: Lima
Mensajes: 364
Antigüedad: 22 años, 3 meses
Puntos: 0
Pregunta No me reconoce el archivo "estilo.css"

Hola a todos.

Tengo un script en XHTML y un archivo estilo.css que se encuentra en la carpeta "Css", sin embargo cuando invoco a estilo.css desde el index.htm no lo reconoce.

Si pongo el contenido del estilo dentro del index.htm sí lo hace, alguien puede decirme qué está mal? Este es el index.htm

Código:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

  <title>Local Dates</title>
  <link href="Css/estilo.css" type="text/css" />
<style type="text/css" xml:space="preserve">
/*<![CDATA[*/
 body {
	height: 100%;
	background: #BEBFAE;
	margin: 0px;
	font-size: 0px;
	text-align: center;
	background-color: #BEBFAE;
}
 
html{
    font-size:      0px;
}
 
table{
    padding:            0px;
    margin:             70px;
    border-collapse:    collapse;
    font-size:          0px;
    border:             0px;
}
TD{
    font-size:          0px;
    padding:            0px;
    margin:             0px;
    vertical-align:     top;
    border:             0px;
    border-collapse:    collapse; 
}
IMG{
    margin: 0px;
    border: 0px;
    padding:0px;
} 
div.c1 {
    text-align: center;
    width:      683px; //778px;
    margin:     0px auto 0px auto;
    height: 	625px
    
}
/*]]>*/
</style>
</head>

<body class="c1">
  <div class="c1">
    <table cellpadding="0" cellspacing="0" width="770" align="center" border="0">
      <tr>
        <td><img src="spacer.gif" width="13" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="52" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="38" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="26" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="122" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="33" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="61" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="37" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="7" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="183" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="8" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="186" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="12" height="1" alt="" /></td>

        <td><img src="spacer.gif" width="1" height="1" alt="" /></td>
      </tr>

      <tr>
        <td colspan="13"><img id="index_r1_c1" src="index_r1_c1.jpg" width="778" height="10" alt="" name="index_r1_c1" /></td>

        <td><img src="spacer.gif" width="1" height="10" alt="" /></td>
      </tr>

      <tr>
        <td rowspan="14"><img id="index_r2_c1" src="index_r2_c1.jpg" width="13" height="614" alt="" name="index_r2_c1" /></td>

        <td colspan="3"><img id="index_r2_c2" src="index_r2_c2.jpg" width="116" height="114" alt="" name="index_r2_c2" /></td>

        <td><img id="index_r2_c5" src="index_r2_c5.jpg" width="122" height="114" alt="" name="index_r2_c5" /></td>

        <td colspan="3"><img id="index_r2_c6" src="index_r2_c6.jpg" width="131" height="114" alt="" name="index_r2_c6" /></td>

        <td rowspan="12"><img id="index_r2_c9" src="index_r2_c9.jpg" width="7" height="580" alt="" name="index_r2_c9" /></td>

        <td rowspan="6" colspan="3"><img id="index_r2_c10" src="index_r2_c10.jpg" width="377" height="340" alt="" name="index_r2_c10" /></td>

        <td rowspan="14"><img id="index_r2_c13" src="index_r2_c13.jpg" width="12" height="614" alt="" name="index_r2_c13" /></td>

        <td><img src="spacer.gif" width="1" height="114" alt="" /></td>
      </tr>

      <tr>
        <td colspan="7"><img id="index_r3_c2" src="index_r3_c2.jpg" width="369" height="6" alt="" name="index_r3_c2" /></td>

        <td><img src="spacer.gif" width="1" height="6" alt="" /></td>
      </tr>

      <tr>
        <td colspan="2"><img id="index_r4_c2" src="index_r4_c2.jpg" width="90" height="71" alt="" name="index_r4_c2" /></td>

        <td colspan="3"><img id="index_r4_c4" src="index_r4_c4.jpg" width="181" height="71" alt="" name="index_r4_c4" /></td>

        <td colspan="2"><img id="index_r4_c7" src="index_r4_c7.jpg" width="98" height="71" alt="" name="index_r4_c7" /></td>

        <td><img src="spacer.gif" width="1" height="71" alt="" /></td>
      </tr>

      <tr>
        <td colspan="7"><img id="index_r5_c2" src="index_r5_c2.jpg" width="369" height="6" alt="" name="index_r5_c2" /></td>

        <td><img src="spacer.gif" width="1" height="6" alt="" /></td>
      </tr>

      <tr>
        <td rowspan="6"><img id="index_r6_c2" src="index_r6_c2.jpg" width="52" height="290" alt="" name="index_r6_c2" /></td>

        <td colspan="5"><img id="index_r6_c3" src="index_r6_c3.jpg" width="280" height="19" alt="" name="index_r6_c3" /></td>

        <td rowspan="6"><img id="index_r6_c8" src="index_r6_c8.jpg" width="37" height="290" alt="" name="index_r6_c8" /></td>

        <td><img src="spacer.gif" width="1" height="19" alt="" /></td>
      </tr>

      <tr>
        <td rowspan="5" colspan="5"><img id="index_r7_c3" src="index_r7_c3.jpg" width="280" height="271" alt="" name="index_r7_c3" /></td>

        <td><img src="spacer.gif" width="1" height="124" alt="" /></td>
      </tr>

      <tr>
        <td colspan="3"><img id="index_r8_c10" src="index_r8_c10.jpg" width="377" height="7" alt="" name="index_r8_c10" /></td>

        <td><img src="spacer.gif" width="1" height="7" alt="" /></td>
      </tr>

      <tr>
        <td colspan="3"><img id="index_r9_c10" src="index_r9_c10.jpg" width="377" height="80" alt="" name="index_r9_c10" /></td>

        <td><img src="spacer.gif" width="1" height="80" alt="" /></td>
      </tr>

      <tr>
        <td colspan="3"><img id="index_r10_c10" src="index_r10_c10.jpg" width="377" height="7" alt="" name="index_r10_c10" /></td>

        <td><img src="spacer.gif" width="1" height="7" alt="" /></td>
      </tr>

      <tr>
        <td rowspan="2"><img id="index_r11_c10" src="index_r11_c10.jpg" width="183" height="139" alt="" name="index_r11_c10" /></td>

        <td rowspan="3"><img id="index_r11_c11" src="index_r11_c11.jpg" width="8" height="146" alt="" name="index_r11_c11" /></td>

        <td rowspan="2"><img id="index_r11_c12" src="index_r11_c12.jpg" width="186" height="139" alt="" name="index_r11_c12" /></td>

        <td><img src="spacer.gif" width="1" height="53" alt="" /></td>
      </tr>

      <tr>
        <td colspan="7"><img id="index_r12_c2" src="index_r12_c2.jpg" width="369" height="86" alt="" name="index_r12_c2" /></td>

        <td><img src="spacer.gif" width="1" height="86" alt="" /></td>
      </tr>

      <tr>
        <td colspan="7"><img id="index_r13_c2" src="index_r13_c2.jpg" width="369" height="7" alt="" name="index_r13_c2" /></td>

        <td><img id="index_r13_c10" src="index_r13_c10.jpg" width="183" height="7" alt="" name="index_r13_c10" /></td>

        <td><img id="index_r13_c12" src="index_r13_c12.jpg" width="186" height="7" alt="" name="index_r13_c12" /></td>

        <td><img src="spacer.gif" width="1" height="7" alt="" /></td>
      </tr>

      <tr>
        <td colspan="11"><img id="index_r14_c2" src="index_r14_c2.jpg" width="753" height="23" alt="" name="index_r14_c2" /></td>

        <td><img src="spacer.gif" width="1" height="23" alt="" /></td>
      </tr>

      <tr>
        <td colspan="11"><img id="index_r15_c2" src="index_r15_c2.jpg" width="753" height="11" alt="" name="index_r15_c2" /></td>

        <td><img src="spacer.gif" width="1" height="11" alt="" /></td>
      </tr>
    </table>
  </div>
</body>
</html>
Espero su ayuda y gracias de antemano
__________________
Gaby :adios:
  #2 (permalink)  
Antiguo 26/05/2006, 19:58
 
Fecha de Ingreso: abril-2002
Mensajes: 1.014
Antigüedad: 22 años
Puntos: 8
Hola,

¿El nombre del directorio coincide en mayúsculas y minúsculas a como lo tienes?

Si no es es eso te ha faltado poner el atributo REL:

<link href="Css/estilo.css" type="text/css" REL="styleSheet" />

Salu2
  #3 (permalink)  
Antiguo 26/05/2006, 19:58
Avatar de ZydRick  
Fecha de Ingreso: febrero-2005
Ubicación: Lima
Mensajes: 750
Antigüedad: 19 años, 2 meses
Puntos: 4
creo ke te falto ponerle la propiedad rel a la etiketa link prueba asi

Código HTML:
<link rel="stylesheet" type="text/css" href="estilos.css" /> 
como te daras cuenta el atributo stylesheet de la propiedad rel indica ke lo ke se va a ejecutar es una hoja de estilos CSS, prueba de esa manera y ya nos contaras ke tal te fue.

Saludos
  #4 (permalink)  
Antiguo 29/05/2006, 10:57
Avatar de gabyweb  
Fecha de Ingreso: enero-2002
Ubicación: Lima
Mensajes: 364
Antigüedad: 22 años, 3 meses
Puntos: 0
Sí, eso era lo que faltaba la propiedad "rel", vaya detalle...GRACIAS A TODOS
__________________
Gaby :adios:
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:20.