Dom scripting

Page 254

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


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.