You Don’t Know CSS

I don’t know CSS. Neither do I know whether you do.

Like many other subjects of this world, CSS is an art of combinations. Things could get complex and counter-intuitive when combined. Therefore goes YDKCSS.

This book is intended to be open-access and community-contributed. Feel free to submit content requests, contents and demos in issues.

The title of this book is inspired by You Don’t Know JS, written by @getify.

Contents (planned)

  • Box model
    • Inline, line and block boxes
    • Block formatting context (BFC)
  • Stacking and stacking contexts
    • position: fixed
    • opacity—IE and Edge compatibility
  • Form elements
    • box models
    • -moz- and -webkit-appearance
  • vertical-align
    • inline-blocks and inline replaced elements
      • The effect of overflow: hidden on inline-blocks
    • types of values
      • line-height and vertical-align
  • Word-break and word-wrap
  • Typography
    • CJK typography
    • Web fonts
  • Browsers with unexpected problems

Selected sections

Works by others that’ve inspired me