Css Font
Css Font
CSS font properties define the font family, boldness, size, and the style of a
text.
CSS Font Families
In CSS, there are two types of font family names:
• generic family - a group of font families with a similar look (like "Serif" or
"Monospace")
• font family - a specific font family (like "Times New Roman" or "Arial")
caption Uses the font that are used by captioned controls (like
buttons, drop-downs, etc.)
icon Uses the font that are used by icon labels
status-bar Uses the fonts that are used by the status bar
font-family Property
The font-family property specifies the font for an element.
The font-family property can hold several font names
as a "fallback" system. If the browser does not support
the first font, it tries the next font.
Start with the font you want, and end with a generic
family, to let the browser pick a similar font in the
generic family, if no other fonts are available.
Styling Links
Links can be styled with any CSS property
(e.g. color, font-family, background, etc.).
In addition, links can be styled differently
depending on what state they are in.
The four links states are:
• a:link - a normal, unvisited link
• a:visited - a link the user has visited
• a:hover - a link when the user mouses over it
• a:active - a link the moment it is clicked
• a:link {color:#FF0000;} /* unvisited link */
Text Decoration
The text-decoration property is mostly used to remove
underlines from links:
a:link {text-decoration:none;}
Background Color
The background-color property specifies the background color
for links:
a:visited {background-color:#FFFF85;}