15
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition By Robert W. Sebesta

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

Embed Size (px)

Citation preview

Page 1: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Chapter 3Cascading Style Sheets

Programming the World Wide Web Fourth edition

By Robert W. Sebesta

Page 2: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-2Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Table 3.1 Generic fonts

Page 3: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-3Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Figure 3.1 Display of fonts.html

Page 4: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-4Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Figure 3.2 Display of decoration.html

Page 5: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-5Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Figure 3.3 Examples of unordered lists

Page 6: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-6Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Table 3.2 Possible sequencing values for ordered lists

Page 7: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-7Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Figure 3.4 Display of sequence_types.html

Page 8: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-8Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Table 3.3 Named colors

Page 9: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-9Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Figure 3.5 The background-color property

Page 10: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-10Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Figure 3.6 Display of float.html

Page 11: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-11Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Figure 3.7 The box model

Page 12: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-12Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Figure 3.8 Borders

Page 13: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-13Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Figure 3.9 Display of marpads.html

Page 14: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-14Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Figure 3.10 Display of back_image.html

Page 15: Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition

3-15Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Figure 3.11 The <span> tag