HTML - Cambiar color de fuente

 
Vista:

Cambiar color de fuente

Publicado por Ana María (1 intervención) el 07/04/2012 13:15:05
Hola. Escribí un script con fondo azul con un texto encerrado en <h3><a> porque es un link. La letra del texto aparece en color rojo y quiero que sea blanco. Probé con font, style, text en el body,style css en el head, aplicado al h3 y al a. No hay lugar que se refiera a texto donde no le haya puesto "blanco". El texto sigue saliendo en rojo. Esta es la última versión:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?
if ($hacer=="") {
?>
<!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>Ideario7</title>
 <style type="text/css">
<!--
H3  {
 font-size : 36pt;
 font-family : verdana,arial;
 text-decoration : underline;
 text-align : center;
 background-color : Teal;
 color : white;
 }
a:link {
	color: #000000;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: none;
	color: #000000;
}
a:active {
	text-decoration: none;
	color: #000000;
}


-->
  </style>
 
</head>
<body text="#000000" bgcolor="#6699CC" onload="document.ingreso.usuario.focus()">
<form name="ingreso.php" action="<? echo $PHP_SELF; ?>" method="post">
	<H1 align="center">IDEARIO7</H1>
	<H2 align="center">Ingreso</H2>
	<table border=2 align=center>
	<tr><td><b>Usuario:</b></td><td><input type=text name="usuario" size=20 maxlength="12"></td></tr>
	<tr><td><b>Clave:</b></td><td><input type=password name="clave" size=20 maxlength="8"></td></tr>
	<tr><td colspan=2 align=center><input type=submit name="hacer" value="Aceptar" style="background-color:#999999"></td></tr>
	</table>
</form>
</body>
</html>
 
<?
} else {
$server="localhost";
$usu="ideario";
$passw="Diario777";
$link=mysql_connect($server,$usu,$passw) or die("Conexión Fallida".mysql_error());
$db=mysql_select_db("ideario_test",$link);
$sql=mysql_query("select usuario,clave,estado from personas where usuario='$usuario' and clave='$clave'") or die ("No se encontró  registro");
while ($mifi=mysql_fetch_array($sql)) {
	if ($mifi["usuario"]=='supervisor') {
?>
	<html>
	<body text="#000000" bgcolor="#6699CC">
	<h3 align=center><a href="supervisa.php">Bienvenido, José</a></h3>
	</body>
	</html>
<?
	} elseif ($mifi["estado"]!=='Activo') {
		echo "No autorizado. Contáctese con el Administrador del Diario";
	} else {
		echo "Menú de colaboradores en preparación";
	}
	}
mysql_close($link);
}
 
?>
</body>
</html>

Se agradece cualquier idea de qué está mal en el color de la fuente. Gracias.
Ana María
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

Cambiar color de fuente

Publicado por BRANDO GEOVANI ROSALES CORREA (1 intervención) el 26/04/2012 17:36:41
PARA CAMBIAR EL COLOR ALA LETRA UTILIZAMOS EL COMANDO FONT EJEMPLO

<FONT COLOR="COLOR">TEXTO</FONT>

ES FACIL :)
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar