Results 1 to 4 of 4

Thread: [Solved] CSS Validation

  1. #1

    Thread Starter
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552

    Resolved [Solved] CSS Validation

    I validated my CSS but got this Warning message

    Line : 0 font-family: You are encouraged to offer a generic family as a last alternative

    What does this mean? I'm new on this thing. Thanks for any replies. BTW, here's my CSS
    Code:
    body{
        font:11pt times;
        margin-left:50px;
        margin-right:50px;
    }
    pre,tt{
        font:9pt courier new;
    }
    td{
        vertical-align:top;
        padding:3px;
    }
    .black{
        color:black;
    }
    .bordered{
        border:1px solid #c7c7c7;
    }
    .console{
        padding:3px;
        color:#c7c7c7;
        background:black;
    }
    .none{
        text-decoration:none;
    }
    .none:hover{
        text-decoration:underline;
    }
    .snippet{
        padding:3px;
        background:#efefef;
        border:1px solid #c7c7c7;
    }
    .wide{
        width:100%;
    }
    Last edited by brown monkey; Nov 6th, 2004 at 01:46 AM.

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    It means something generic instead of a specific font like Verdana. Do something like this:
    Code:
    font-family: verdana, arial, helvetica, sans-serif;
    That is what I use on my website. It'll use Verdana. if it doesn't exist then it goes to arial, then helvetica. If none exist, then it chooses one that is sans-serif. sans-serif is a generic font because it doesn't specifically go to one font, but to any font that is sans-serif. You could also go with something else like serif. I'm not sure of the others off the top of my head though.

    Hope that helps.

  3. #3

    Thread Starter
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552
    kasc,

    This kinda funny. I've got no error or warning found on my CSS. What I actually did is remove the font-family. Anyways, I only want it to be 11pt times.

    Code:
    body{
        font-size:11pt;
        margin-left:50px;
        margin-right:50px;
    }
    pre,tt{
        font-size:9pt;
    }
    td{
        vertical-align:top;
        padding:3px;
    }
    .black{
        color:black;
    }
    .bordered{
        border:1px solid #c7c7c7;
    }
    .console{
        padding:3px;
        color:#c7c7c7;
        background:black;
    }
    .none{
        text-decoration:none;
    }
    .none:hover{
        text-decoration:underline;
    }
    .snippet{
        padding:3px;
        background:#efefef;
        border:1px solid #c7c7c7;
    }
    .wide{
        width:100%;
    }
    Thanks for the reply. I think it is solved for now.

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by brown monkey
    Thanks for the reply. I think it is solved for now.
    Sure. Anytime

Posting Permissions

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



Click Here to Expand Forum to Full Width