Could someone clarify why the below font style settings is not working in chrome, but working in IE and FireFox.
My website has the same problem, it does not pick up the CSS font settings (where normal is mentioned), hence I tested with the CSS test environment from W3Schools and the behavior is same.
CSS Snippet:
- Working only in IE/FireFox:
font-family: Arial, Helvetica, sans-serif normal; - Working in All Browsers:
font-family: Arial, Helvetica, sans-serif;
Try in Chrome and IE to see difference.
body {
font-family: "Times New Roman", serif;
}
p.serif {
font-family: Arial, Helvetica, sans-serif;
}
p.sansserif {
font-family: Arial, Helvetica, sans-serif normal;
}
CSS font-family
This is a paragraph, shown in Arial Without Normal.
This is a paragraph, shown in Arial With Normal
Below are the questions:
- Could you clarify why the behavior difference between these two browsers?
- How to ensure my CSS font styles are picked by Chrome and IE/FireFox (Should I remove
normalfrom all my CSS files or is there any better way to do it)?