HTML CSS Fonts


CSS Fonts can take number of selectors.
Possible values are:

For example;
	
			.myFont{
				font-size: large    ;
				font-style: italic  ;
				font-family: Times New Roman, Serif ;
				font-variant: normal;
				font-weight: bold   ;
				line-height: 200%   ;				
			}
	
This creates a class called "myFont". This is what the text would look like

The font can also be declared in one statement; .myFont{ font: large italic bold 200% Times New Roman, Serif }
Personally, I have had issues with declaring all the font selectors in one statement, mainly it confuses me, so I prefer to use an individual line for each selector.


Font Selector Values




I hope you will join us for the next lesson Lesson 11) Links

Additional Resources