Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Here's a 5 second guide for typography on the web:

Set max-with and increase line-height. Everything else is just fine as it is.



Yes, and use the correct units when setting max-width and line-height. This is good:

  line-height: 1.4;
  max-width: 30em;
This is not:

  line-height: 120%;
  max-width: 700px;
https://developer.mozilla.org/en-US/docs/Web/CSS/line-height...

http://maxdesign.com.au/articles/ideal-line-length-in-ems/

Also, use the proper typographic characters in body text: https://www.w3.org/2009/cheatsheet/#typo.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: