Exercise 3 solution: a long-form article stylesheet =================================================== Save as article.css and link it from an HTML page. Every value below is a starting point: change one at a time and judge by eye on real text. /* DIAL 1, size: rem, so the reader's browser setting still works */ body { font-family: Georgia, "Times New Roman", serif; font-size: 1.125rem; /* 18px by default; Georgia has a big x-height, so no need to go higher */ line-height: 1.55; /* DIAL 3, leading: unitless, inherited as a multiplier */ font-kerning: normal; /* DIAL 4, kerning: leave the font's pair adjustments on */ } /* DIAL 2, measure: let the text set the width, not a pixel number */ .article { max-width: 62ch; /* about 60 to 66 characters per line; test it, ch is the width of "0" */ margin-inline: auto; /* centre the column on wide screens */ padding-inline: 1rem; /* on a phone the column fills the screen; this keeps text off the edge */ } /* Leading again: bigger type needs tighter leading */ h1, h2, h3 { line-height: 1.2; /* headings are larger, so the gaps grow with them; 1.5 would look detached */ } h1 { font-size: 2.25rem; } /* size in rem, 36px by default */ h2 { font-size: 1.5rem; } /* DIAL 4, tracking: capitals and small text get a little extra */ .kicker { font-size: 0.8rem; letter-spacing: 0.1em; /* in em so it scales with the label's size */ text-transform: uppercase; } /* Very wide screens: a slightly larger body size */ @media (min-width: 1600px) { body { font-size: 1.25rem; } /* 20px by default */ /* Because the letters are bigger, the measure in ch grows with them automatically: the column stays at about 62 characters. The leading ratio can stay at 1.55 because it is a multiplier; a fixed px line-height would NOT follow the size and would need changing here too. */ } What to take from it -------------------- * Each dial has its own line, with a reason in the comment. * rem for sizes, ch for the measure, a unitless number for leading and em for tracking: each unit is chosen because it keeps the proportions as the text grows or shrinks. * A px line-height or px width in this stylesheet would break one of those links.