CHAPTER 12 ■ PUTTING IT ALL TOGETHER
Typography It isn’t always easy to decide where to put certain style declarations. Fonts and sizes clearly belong in the typography.css file. But what about margins and padding? It’s hard to say whether they are part of the layout or should be considered typographical information. Here, the padding information is in layout.css, as shown in the previous section. Margins are applied in typography.css. body { font-size: 76%; font-family: "Helvetica","Arial",sans-serif; } body * { font-size: 1em; } a { font-weight: bold; text-decoration: none; } header nav { font-family: "Lucida Grande","Helvetica","Arial",sans-serif; } header nav a { text-decoration: none; font-weight: bold; } article {
236