|
-
Nov 6th, 2004, 01:29 AM
#1
Thread Starter
Fanatic Member
[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.
-
Nov 6th, 2004, 01:34 AM
#2
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.
-
Nov 6th, 2004, 01:46 AM
#3
Thread Starter
Fanatic Member
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.
-
Nov 6th, 2004, 01:48 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|