vertical rhythm
play

Vertical Rhythm (and Alignment) Elika J. Etemad aka fantasai W3C - PowerPoint PPT Presentation

Vertical Rhythm (and Alignment) Elika J. Etemad aka fantasai W3C CSS Working Group Invited Expert Typographers Line Placement Model Goal: Look pretty. Tools: Measure and adjust. Top line visually aligns with other things. Align Me! Here's


  1. Strict Rhythm... Lorem Ipsum Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur . Excepteur sint Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed d l

  2. Strict Rhythm... Lorem Ipsum Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur . Excepteur sint Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed d l

  3. Strict rhythms are important for multicol

  4. Loose Rhythm... Lorem Ipsum Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur . Excepteur sint Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed d l

  5. Block Step Sizing https://www.w3.org/TR/css-rhythm/

  6. block-step-size: <length> Requires used height = n × <length>, for an integer n

  7. block-step-insert: margin | padding

  8. block-step-align: auto | center | start | end

  9. intra What happens at page/column breaks?

  10. </Inter-Paragraph Spacing>

  11. Trimming Text

  12. Align Me! Here's some paragraph text following the heading, which should wrap around the float eventually, assuming it's long enough to reach a few lines below the bottom of it...

  13. Delete the top margin... Align Me! Here's some paragraph text following the heading, which should wrap around the float eventually, assuming it's long enough to reach a few lines below the bottom of it...

  14. Add negative margin??? Align Me! Here's some paragraph text following the heading, which should wrap around the float eventually, assuming it's long enough to reach a few lines below the bottom of it...

  15. >_____< Align Me! Here's some paragraph text following the heading, which should wrap around the float eventually, assuming it's long enough to reach a few lines below the bottom of it...

  16. OpenType metrics cap-height ascent ex-height alphabetic baseline descent Ap

  17. leading-trim-over: normal | text | cap | ex | ideographic leading-trim-under: normal | text | alphabetic | ideographic

  18. h2 { leading-trim: cap; } Align Me! Here's some paragraph text following the heading, which should wrap around the float eventually, assuming it's long enough to reach a few lines below the bottom of it...

  19. h2 { leading-trim: cap; } Align Me! Here's some paragraph text following the heading, which should wrap around the float eventually, assuming it's long enough to reach a few lines below the bottom of it...

  20. h2 { leading-trim: cap; }

  21. h2 { leading-trim: cap; }

  22. I thought this was a World-Wide Web? IDEOGRAPHIC CHARACTER FACE TOP CAP HEIGHT ???? EX HEIGHT

  23. Your metrics are bad, and you should feel bad.

  24. Open Questions Behavior at page/column breaks? Separate cascading/inheritance of metric vs. trigger? Multiple font sizes on the first/last line?

  25. Vertical Alignment

  26. unaligned text Abra Cadabra!

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend