/
CSS Font Families
CSS Font Families
Font families refers to how we can tell the browser what font to use - Times New Roman versus say Arial.
One of the interesting challenges with web browsers is they run on all types of operating systems and so we cannot guarantee what font is available on a given browser so CSS allows one to specify several font families in order of most preferred to least preferred.
For instance:
.MAIN * {
font-family: Arial, Helvetica, sans-serif;
}
This specifies that the font Arial should be used if present, and if not then try Helvitica or if that cannot be found use sans-serif.
See CSS Selectors to understand the first line of the above example.
, multiple selections available,
Related content
How SASS CSS preprocessors can make for complex CSS
How SASS CSS preprocessors can make for complex CSS
Read with this
CSS Selectors
CSS Selectors
More like this
Describe categories with classes rather styling specific elements
Describe categories with classes rather styling specific elements
Read with this
What is CSS?
What is CSS?
More like this
CSS Pseudo Class Selectors
CSS Pseudo Class Selectors
Read with this
CSS Dimensions
CSS Dimensions
More like this