~pierrebeaucamp

Toronto, ON, Canada

https://www.pierrebeaucamp.com


#112 Move content to center on wide screens 1 year, 9 months ago

Comment by ~pierrebeaucamp on ~sircmpwn/sr.ht

For what it's worth, I really like how tufte-css (https://github.com/edwardtufte/tufte-css) solved this problem: By default content is left aligned, but on larger screens it becomes somewhat centered while still preserving a strong left orientation.

As far as I know, this was achieved by

body {
  margin-left: auto;
  margin-right: auto;
  max-width: 1400px;
}