PDA

View Full Version : Font styling problem



MattM
02-12-2004, 08:21 PM
I'm displaying a list of categories stored in MySQL and I've been trying to format the text using several methods, however, they do not work. The text is currently plain, black. I have this in my <head> tags.
<style type="text/css">
a.menu {
text-decoration: none;
color: white;
font-family: "arial";
font-size: 9pt;

} </style>Before the code to list the categories starts, I have <div class="menu">, and then of course </div> after the code ends.

I have even tried setting the text color of the page in Dreamweaver via Page Properties, but that does not work either.

GCT13
02-12-2004, 08:45 PM
"a.menu" works on anchor text. If the text isn't linked then that's probably why it's not displayed like you want. Try ".menu".

MattM
02-12-2004, 09:51 PM
The styling works for any text on the page, it just is not working for the categories links.

GCT13
02-12-2004, 10:01 PM
What happens when you remove the "a" in your <style>?

MattM
02-13-2004, 03:46 PM
Well, the size and font type is working fine, however the color is not working.

GCT13
02-13-2004, 07:06 PM
Try using the hex color value. For white:

color: #ffffff;

MattM
02-13-2004, 07:44 PM
Nope, tried, still doesn't work. Here's part of my code:

<font face="arial" color="#FFFFFF">
a
<? echo('<a href="/cat/' . $pid .'/">'. $name . '</a>'); ?></font><br>
<? } ?>If you notice that a in there, it is applying white to it, but where I am echoing the variables, it is not.

MattM
02-13-2004, 08:30 PM
Nevermind, its working now.