fONT COLOR PROPERT NOT CHANGING

philsivyer
philsivyer used Ask the Experts™
on
Hello
Why doesn't my font property of red in my paragraph not change color to RED
Regards
Phil
<?xml version= "1.0" encoding="UTF-8"?>
<!doctype HTML public "-//W3C//DTD XHTML 1.1//EN"
<html>
<head>
<style>
p
{
height: 0px;
}
</style>
</head>
<h4 style="font=family: arial; font-size:12pt;font-weight:bold; color:navy">Distribution</h4>
<p style="font=family: arial; font-size:11pt;color:red">
 <a href="01_AAM_MSP2.html">List</a></p>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Because it is overriden by the "a" color. Try this :

<html>
<head>
<style>
p
{
	height: 0px;
	font=family: arial;
	font-size:11pt;
}
p, p a {
	color:red
}
</style>
</head>
<body>
	<h4 style="font=family: arial; font-size:12pt;font-weight:bold; color:navy">Distribution</h4>
	<p>
 		<a href="01_AAM_MSP2.html">List</a>
 	</p>
 </body>

Open in new window

Commented:
put the style property in the <a> tag such as
 <a href="01_AAM_MSP2.html" style="font=family: arial; font-size:11pt; color:red">

Author

Commented:
Thanks - finally, how can I stop the output in my paragraphs from being underlined
Phil
Commented:

p, p a {
	color:red;
	text-decoration: none;
}

Open in new window

Author

Commented:
Thanks everybody

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial