Results 1 to 8 of 8

Thread: Font styling problem

  1. #1
    Registered
    Join Date
    Jan 2004
    Posts
    224

    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.

  2. #2
    Registered GCT13's Avatar
    Join Date
    Aug 2003
    Location
    NYC
    Posts
    480
    "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".
    ....

  3. #3
    Registered
    Join Date
    Jan 2004
    Posts
    224
    The styling works for any text on the page, it just is not working for the categories links.
    Last edited by MattM; 02-12-2004 at 09:56 PM.

  4. #4
    Registered GCT13's Avatar
    Join Date
    Aug 2003
    Location
    NYC
    Posts
    480
    What happens when you remove the "a" in your <style>?
    ....

  5. #5
    Registered
    Join Date
    Jan 2004
    Posts
    224
    Well, the size and font type is working fine, however the color is not working.

  6. #6
    Registered GCT13's Avatar
    Join Date
    Aug 2003
    Location
    NYC
    Posts
    480
    Try using the hex color value. For white:

    color: #ffffff;
    ....

  7. #7
    Registered
    Join Date
    Jan 2004
    Posts
    224
    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.

  8. #8
    Registered
    Join Date
    Jan 2004
    Posts
    224
    Nevermind, its working now.

Similar Threads

  1. viewing problem
    By fellboyzs in forum HTML, CSS, Layout, and Design
    Replies: 2
    Last Post: 05-05-2004, 06:15 PM
  2. Nice New Site Chris... What font is that?
    By incka in forum General Chat
    Replies: 6
    Last Post: 02-12-2004, 11:33 AM
  3. Local Rank stuff...
    By chromate in forum Search Engine Optimization
    Replies: 41
    Last Post: 02-07-2004, 03:53 PM
  4. Problem with my links
    By Mike in forum HTML, CSS, Layout, and Design
    Replies: 3
    Last Post: 11-15-2003, 03:25 PM
  5. My Problem
    By Chris in forum General Chat
    Replies: 10
    Last Post: 08-30-2003, 12:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •