-
Font styling problem
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.
Code:
<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.
-
"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".
-
The styling works for any text on the page, it just is not working for the categories links.
-
What happens when you remove the "a" in your <style>?
-
Well, the size and font type is working fine, however the color is not working.
-
Try using the hex color value. For white:
color: #ffffff;
-
Nope, tried, still doesn't work. Here's part of my code:
PHP 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.
-
Nevermind, its working now.