The Essential Guide to CSS and HTML Webdesign.pdf

(11907 KB) Pobierz
13224602 UNPDF
A modern, modulAr ApproAch
to stAndArds-compliAnt web desiGn.
CreaTeCUTTing-edge,good-Looking,
eFFiCienTWeBPageS.
WorkWiTHSTandardS-CoMPLianT
TeCHnoLogieS.
CoMBineeXerCiSeSToFaSHion
CoUnTLeSSWeBPagedeSignS.
CraiggranneLL
ForeWordByJonHiCkS,HiCkSdeSign
13224602.042.png 13224602.043.png 13224602.044.png 13224602.045.png 13224602.001.png 13224602.002.png 13224602.003.png 13224602.004.png 13224602.005.png 13224602.006.png 13224602.007.png 13224602.008.png 13224602.009.png 13224602.010.png 13224602.011.png 13224602.012.png 13224602.013.png 13224602.014.png 13224602.015.png 13224602.016.png 13224602.017.png 13224602.018.png 13224602.019.png 13224602.020.png 13224602.021.png 13224602.022.png 13224602.023.png 13224602.024.png 13224602.025.png 13224602.026.png 13224602.027.png 13224602.028.png 13224602.029.png 13224602.030.png 13224602.031.png 13224602.032.png 13224602.033.png 13224602.034.png 13224602.035.png 13224602.036.png 13224602.037.png
 
The Essential Guide to CSS
and HTML Web Design
Craig Grannell
13224602.038.png 13224602.039.png
The Essential Guide to CSS and
HTML Web Design
Copyright © 2007 by Craig Grannell
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or by any information storage or retrieval
system, without the prior written permission of the copyright owner and the publisher.
ISBN-13 (pbk): 978-1-59059-907-5
ISBN-10 (pbk): 1-59059-907-1
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence
of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark
owner, with no intention of infringement of the trademark.
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor,
New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail orders- ny@springer-sbm.com,
For information on translations, please contact Apress directly at 2855 Telegraph Avenue, Suite 600,
Berkeley, CA 94705. Phone 510-549-5930, fax 510-549-5939, e-mail info@apress.com,
or visit www.apress.com.
The information in this book is distributed on an “as is” basis, without warranty. Although every precaution
has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to
any person or entity with respect to any loss or damage caused or alleged to be caused directly or
indirectly by the information contained in this work.
The source code for this book is freely available to readers at www.friendsofed.com in the
Downloads section.
Credits
Lead Editors
Chris Mills,
Tom Welsh
Assistant Production Director
Kari Brooks-Copony
Production Editor
Ellie Fountain
Technical Reviewer
David Anderson
Compositor
Dina Quan
Editorial Board
Steve Anglin, Ewan Buckingham,
Gary Cornell, Jonathan Gennick,
Jason Gilmore, Jonathan Hassell,
Matthew Moodie, Jeffrey Pepper,
Ben Renow-Clarke, Dominic Shakeshaft,
Matt Wade, Tom Welsh
Artist
April Milne
Proofreader
Nancy Sixsmith
Project Manager
Kylie Johnston
Indexer
Julie Grady
Copy Editor
Damon Larson
Interior and Cover Designer
Kurt Krames
Manufacturing Director
Tom Debolski
13224602.040.png
CONTENTS AT A GLANCE
About the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii
Chapter 1: An Introduction to Web Design . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Chapter 2: Web Page Essentials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Chapter 3: Working with Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Chapter 4: Working with Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Chapter 5: Using Links and Creating Navigation . . . . . . . . . . . . . . . . . . . . . . . 147
Chapter 6: Tables: How Nature (and the W3C) Intended . . . . . . . . . . . . . . . . . 233
Chapter 7: Page Layouts with CSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Chapter 8: Getting User Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Chapter 9: Dealing with Browser Quirks . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Chapter 10: Putting Everything Together . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
Appendix A: XHTML Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399
Appendix B: Web Color Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447
Appendix C: Entities Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451
Appendix D: CSS Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
Appendix E: Browser Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497
Appendix F: Software Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509
iii
13224602.041.png
Zgłoś jeśli naruszono regulamin