Tema: FAQ's de CSS
Ver Mensaje Individual
  #45 (permalink)  
Antiguo 15/01/2005, 11:59
Matthew_182
 
Fecha de Ingreso: diciembre-2004
Ubicación: En mi ksa
Mensajes: 267
Antigüedad: 19 años, 4 meses
Puntos: 0
FAQ: 48
Pregunta: ¿Cual es la diferencia de :Link a .Link?
Respuesta: :Link se aplica a todos los link y .Link tienes que seleccionarlo manualmente para que funcione.
-----------------------------------------------------------------
Si hacemos esto (Ponemos : en vez de .) :
Código HTML:
<html>
  <head>
      <style type="text/css">
       :Link {
       text-decoration:none;
       color:000000;
       }
      </style>
  </head>
  <body>
      <a href="#">Mi link </a> 
  </body>
</html> 
Todos los links inmediatamente quedan negros sin subrayar
-------------------------------------------------------------
Pero si hacemos esto (le agregamos el . en vez de :) :
Código HTML:
<html>
  <head>
     <style type="text/css">
        .Link {
       text-decoration:none;
       color:000000;
       }
     </style>
  </head>
  <body>
    <a href="#" class="Link">Mi link </a> 
  </body>
</html> 
Para que funcione tendriamos que agregarle dentro de <a href="#"> esto class="Link" que seria igual a esto <a href="#" class="Link">.
__________________
--------------------------------------------------
[::Matthew Beyer::]
MaEsTrOsWeB
Chile
--------------------------------------------------

Última edición por Matthew_182; 15/01/2005 a las 12:12