27/11
TOP - Intermediate HTML and CSS: 22%.
Intermediate CSS Concepts - More Text Styles (1)
Reading through the lesson content, only the assignment section left (this is the long part).
Learn more about text styles, especially the font-family.
Understand about how to import new font-family, both by on html and @import on CSS.
Learn how to import downloaded font:
@font-face {
font-family: myFont; /* set font-name */
src: url(link-to-font-file.woff);
}
body {
font-family: myFont; /* use font /
}
To use other option of font-size like bold, italize,... then will need to import more option by @font-face though.
/ the @font-face above still remained, the @font-face below is for bold font-weight option */
@font-face {
font-family: myFont;
src: url(link-to-my-bold-font-file.woff);
font-weight: bold;
}
Also read a bit about text-style like font-style, line-height, letter-spacing, text-transform, text-shadow, ellipsis but not dive deep like about font-family.
