From the course: EPUB: CSS
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Incorporating @ directives in CSS
- You may see or need to include, depending, of course, on what you're doing @Directives in your CSS. And so, those you're most likely to see because there are quite a few of them include the trio now on the screen. So @font-face, for example allows you to link to fonts that would be then activated in the reading system and you might have included those in your EPUB. @charset defines the character set of the document, so which version of unicode is, for example, as it would be in English, typically UTF-8. And @import, which includes the contents of another file which may be another CSS document. You might have one overarching CSS document for the entire book, but it is conceivable you might have separate CSS documents to override some of those instructions inside of each individual chapter. If you are using them, and these, as I said, aren't the only ones that exist but they are the most typical ones you're likely to find, it's important you understand they have to go into the CSS…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
What is CSS?4m 30s
-
Understanding the relationship between CSS and EPUB57s
-
Understanding the concept of inheritance2m 59s
-
Taking a look at the basic anatomy of a CSS rule3m 42s
-
Working with three basic CSS selectors4m 23s
-
Working with more advanced compound selectors3m 9s
-
Targeting elements with group selectors1m 43s
-
Understanding descendant selectors3m 48s
-
Using classes and IDs with compound selectors2m 57s
-
Discovering how Cascading Style Sheets are implemented6m 22s
-
Incorporating @ directives in CSS1m 52s
-
Understanding fixed and relative units6m 57s
-
Understanding the CSS box model3m 32s
-
Including comments inside CSS2m 47s
-
Writing more efficient code with shorthand notation3m 53s
-
-
-
-
-