Is there a problem with the CSS font-family property with IE6 -
or is it my understanding of the font-family property?
I was under the impression that the browser tried to use the
first font. If it couldn't find that font it used the next on
the list and so on. If it couldn't find any on the list, prior
to the last it would use the last - which, as you can see is
sans-serif here.
When I use the following style I get what I think is the default
system font - which is a SERIF font. Note that all the fonts in
the list below are SANS-SERIF.
Is this an IE bug or am I mis-using the font-family property?
I running XP pro SP2 with this version of IE: IE
6.0.2800.1106.x psp1
"Trebuchet MS" and Verdana are both displayed without a problem.
+++ +++ +++ +++ +++
Here is my class definition. It's applied to <span> and <p>
+++ +++ +++ +++ +++
..dateSpan {
font-family: Shruti, "Trebuchet MS", Verdana, Arial,
Helvetica, sans-serif;
FONT-SIZE: 13px;
font-weight: bold;
color: #603eA2;
cursor: default;
background-image: url(http://eg/images/grid.gif);
width:120px;
margin-top: 0px;
margin-bottom: 0px}
+++ +++ +++ +++ +++
or is it my understanding of the font-family property?
I was under the impression that the browser tried to use the
first font. If it couldn't find that font it used the next on
the list and so on. If it couldn't find any on the list, prior
to the last it would use the last - which, as you can see is
sans-serif here.
When I use the following style I get what I think is the default
system font - which is a SERIF font. Note that all the fonts in
the list below are SANS-SERIF.
Is this an IE bug or am I mis-using the font-family property?
I running XP pro SP2 with this version of IE: IE
6.0.2800.1106.x psp1
"Trebuchet MS" and Verdana are both displayed without a problem.
+++ +++ +++ +++ +++
Here is my class definition. It's applied to <span> and <p>
+++ +++ +++ +++ +++
..dateSpan {
font-family: Shruti, "Trebuchet MS", Verdana, Arial,
Helvetica, sans-serif;
FONT-SIZE: 13px;
font-weight: bold;
color: #603eA2;
cursor: default;
background-image: url(http://eg/images/grid.gif);
width:120px;
margin-top: 0px;
margin-bottom: 0px}
+++ +++ +++ +++ +++
Comment