Ver Mensaje Individual
  #5 (permalink)  
Antiguo 14/06/2007, 12:52
Avatar de AlZuwaga
AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 23 años, 1 mes
Puntos: 535
Re: Ocultar el texto de un submit o button

Hola, probá con esto:

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>Untitled Document</title>
<style type="text/css">
<!--
.boton {
	height: 21px;
	width: 72px;
	background-image: url(img/esq_ficha_4.gif);
	border-style: none;
	text-indent: -9000px;
}

* html .boton {
	text-indent: 0px;
	line-height: 100px;
}

-->
</style>
</head>

<body>
<form method="post" action="" name="form1" id="form1">
<input type="submit" class="boton" value="hola" />
</form>
</body>
</html>
El text-indent funciona en FF pero no en IE (hace desaparecer todo el botón en vez de sólo el texto en este último). El line-height, para este caso, funciona en IE pero no en FF.

Saludos