Comunidad de diseño web y desarrollo en internet online

margen en vinculos

Citar            
MensajeEscrito el 02 Ago 2005 12:13 am
Hola, que tal. Aquí con otro pequeño problema: supongamos que tengo este código XHTML con CSS incorporado:

Código :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Prueba</title>
<style type="text/css">
a:link {
   color: #0000ff;
   text-decoration: none;
   margin-left: 50px;
}
a:hover {
   text-decoration: underline;
}
</style>
</head>

<body>
<a href="hola">vinculo</a>
</body>
</html>


Ahora, cuando lo pruebo con IE resulta que el margen de 50 pixeles tambien es la zona activa del vínculo, y cuando lo pruebo con FF no es así. Lo que quiero es que no me tome el margen como zona activa del vínculo. Cuál es el error? Saludos[/code]

Por Smithy

159 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 02 Ago 2005 12:53 am
El márgen pónselo a un span o p. O sea, mete tu texto en un span o p... ¿me explico?

Por Pedro

BOFH

3017 de clabLevel

3 tutoriales
6 articulos

  Bastard Operators From Hell

Honduras

firefox
Citar            
MensajeEscrito el 02 Ago 2005 01:04 am

Código :

.vinculo {
  padding-left:50px;
  }


Código :

<span class="vinculo"><a href="#" title="ir a vinculo">vinculo</a></span>


Es esto lo que querias lograr?

Por NEO_JP

BOFH

5724 de clabLevel

13 tutoriales
12 articulos

Genero:Masculino   Anime Bloggers Premio_Secretos Team Cristalab

Front-end Developer en Washington, DC

firefox
Citar            
MensajeEscrito el 02 Ago 2005 01:31 am
good, eso es lo que quería, thanks

Por Smithy

159 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 02 Ago 2005 02:14 am
^^

Por NEO_JP

BOFH

5724 de clabLevel

13 tutoriales
12 articulos

Genero:Masculino   Anime Bloggers Premio_Secretos Team Cristalab

Front-end Developer en Washington, DC

firefox

 

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