CSS is the best and most flexible way to visually present ebooks. Learn how to style your EPUBs—including text, graphics, and background elements—exactly as you want with CSS.
Overview
Syllabus
Introduction
- Welcome
- What you should know before watching this course
- Quick references
- Using the exercise files
- What is CSS?
- Understanding the relationship between CSS and EPUB
- Understanding the concept of inheritance
- Taking a look at the basic anatomy of a CSS rule
- Working with three basic CSS selectors
- Working with more advanced compound selectors
- Targeting elements with group selectors
- Understanding descendant selectors
- Using classes and IDs with compound selectors
- Discovering how Cascading Style Sheets are implemented
- Incorporating @ directives in CSS
- Understanding fixed and relative units
- Understanding the CSS box model
- Including comments inside CSS
- Writing more efficient code with shorthand notation
- Understanding the special environment of the EPUB reading system
- Looking at the essential text-related properties
- Working with sizing
- Working with alignment
- Including margins and padding
- Styling a heading
- Working with fine typographic controls
- Including paragraph indents
- Handling text hyphens, widows, and orphans
- Working with additional font properties
- Specifying colors in CSS
- Incorporating document borders
- Using CSS to include images
- Working with background properties
- Challenge: CSS graphics
- Solution: CSS graphics
- Styling lists
- Challenge: Styling a list
- Solution: Styling a list
- Writing smarter rules
- Understanding the concept of positioning
- Positioning: Relative
- Positioning: Absolute and fixed
- Positioning: Float
- Clearing floats
- Working with some clever CSS selectors
- Incorporating page breaks
- Figuring out CSS support levels on specific devices
- Challenge: Funky floats
- Solution: Funky floats
- Next steps
Taught by
Tony Harmer