ebook img

CSS Hacks and Filters: Making Cascading Style Sheets Work PDF

286 Pages·2005·10.425 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview CSS Hacks and Filters: Making Cascading Style Sheets Work

TEAM LinG 01_579851 ffirs.qxd 5/4/05 10:55 PM Page i CSS Hacks and Filters Making Cascading Style Sheets Work TEAM LinG 01_579851 ffirs.qxd 5/4/05 10:55 PM Page ii TEAM LinG 01_579851 ffirs.qxd 5/4/05 10:55 PM Page iii CSS Hacks and Filters Making Cascading Style Sheets Work Joseph Lowery TEAM LinG 01_579851 ffirs.qxd 5/4/05 10:55 PM Page iv CSS Hacks and Filters:Making Cascading Style Sheets Work Published by Wiley Publishing,Inc. 10475 Crosspoint Boulevard Indianapolis,IN 46256 www.wiley.com Copyright © 2005 by Wiley Publishing,Inc.,Indianapolis,Indiana Published by Wiley Publishing,Inc.,Indianapolis,Indiana Published simultaneously in Canada ISBN 13: 978-0-7645-7985-1 ISBN 10: 0-7645-7985-1 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 1B/ST/QV/QV/IN No part of this publication may be reproduced,stored in a retrieval system or transmitted in any form or by any means,electronic, mechanical,photocopying,recording,scanning or otherwise,except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act,without either the prior written permission of the Publisher,or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center,222 Rosewood Drive,Danvers,MA 01923,(978) 750-8400,fax (978) 646-8600.Requests to the Publisher for permission should be addressed to the Legal Department,Wiley Publishing,Inc.,10475 Crosspoint Blvd.,Indianapolis,IN 46256,(317) 572-3447,fax (317) 572-4355,or online at http://www.wiley.com/go/permissions. Limit of Liability/Disclaimer of Warranty:The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties,including without limitation warranties of fitness for a particular purpose.No warranty may be created or extended by sales or promotional materials.The advice and strategies contained herein may not be suitable for every situation.This work is sold with the understanding that the publisher is not engaged in rendering legal,accounting,or other professional services.If professional assistance is required,the services of a competent professional person should be sought.Neither the publisher nor the author shall be liable for damages arising herefrom.The fact that an organization or Website is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Website may provide or recommendations it may make.Further,readers should be aware that Internet Websites listed in this work may have changed or disappeared between when this work was written and when it is read. For general information on our other products and services,please contact our Customer Care Department within the U.S.at 800-762-2974,outside the U.S.at 317-572-3993,or fax 317-572-4002. For technical support,please visit www.wiley.com/techsupport. Wiley also publishes its books in a variety of electronic formats.Some content that appears in print may not be available in electronic books. Library of Congress Cataloging-in-Publication Data Lowery,Joseph (Joseph W.) CSS hacks and filters / Joseph Lowery. p.cm. Includes bibliographical references and index. ISBN 0-7645-7985-1 (paper/website) 1. Web sites--Design.2. Computer graphics.3. Cascading style sheets. I. Title. TK5105.888.L693 2005 006.7--dc22 2005007456 Trademarks:Wiley,the Wiley logo,and related trade dress are trademarks or registered trademarks of John Wiley & Sons,Inc.and/or its affiliates,in the United States and other countries,and may not be used without written permission.ExtremeTech and the ExtremeTech logo are trademarks of Ziff Davis Publishing Holdings,Inc.,used under license.All rights reserved.All other trademarks are the property of their respective owners.Wiley Publishing,Inc.,is not associated with any product or vendor mentioned in this book. TEAM LinG 01_579851 ffirs.qxd 5/4/05 10:55 PM Page v About the Author Joseph Loweryis the author of the Dreamweaver MX 2004 Bible(Indianapolis,IN,Wiley Publishing,2004) and the Fireworks MX Bible(Indianapolis,IN:Wiley Publishing,2002), aswell as Design and Deploy(San Francisco:Macromedia Press,2004) and Joseph Lowery’s Beyond Dreamweaver (Berkeley,CA:New Riders Press,2002).In recent years,he co-authored Dreamweaver MX 2004 Web Application Recipes(Berkeley,CA:New Riders Press,2003) with Eric Ott and the Dreamweaver MX Killer Tipsbook (Berkeley,CA:New Riders Press,2003) with Angela Buraglia.His books are international bestsellers,having sold more than 400,000 copies worldwide in nine different languages.As a programmer,he has developed numerous extensions for the Dreamweaver community,both free and commercial,including FlashBang! and Deva Tools for Dreamweaver.He also has presented at MacDesign in Chicago,Seybold in both Boston and San Francisco,and Macromedia MAX conferences in the U.S.and Europe. TEAM LinG 01_579851 ffirs.qxd 5/4/05 10:55 PM Page vi Credits Executive Editor Vice President and Publisher Chris Webb Joseph B.Wikert Development Editor Project Coordinator Kevin Shafer Erin Smith Technical Editor Graphic and Layout Technicians Mark Fletcher Lauren Goddard Jennifer Heleine Production Editor Melanee Prendergast Gabrielle Nabi Amanda Spagnuolo Julie Trippetti Copy Editor Kim Cofer Quality Control Technicians Laura Albert Editorial Manager John Greenough Mary Beth Wakefield Joe Niesen Vice President & Executive Group Proofreading and Indexing Publisher TECHBOOKS Production Services Richard Swadley TEAM LinG 01_579851 ffirs.qxd 5/4/05 10:55 PM Page vii To the hundreds ofCSS explorers who have charted this rough new terrain with unflinching vigilance and unwavering selflessness. TEAM LinG 01_579851 ffirs.qxd 5/4/05 10:55 PM Page viii TEAM LinG 02_579851 ftoc.qxd 5/4/05 11:05 PM Page ix Contents at a Glance Acknowledgments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix Chapter 1:Why Hack CSS?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Chapter 2:Filtering CSS for Older Browsers . . . . . . . . . . . . . . . . . . . . . . . . 11 Chapter 3:Hiding CSS from Newer Browsers. . . . . . . . . . . . . . . . . . . . . . . . 33 Chapter 4:Applying Conditional Comments . . . . . . . . . . . . . . . . . . . . . . . . 57 Chapter 5:Scripting JavaScript and Document Object Model Hacks. . . . . . . . . . . . 71 Chapter 6:Coding Server-Side Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Chapter 7:Enhancing Graphics and Media with CSS . . . . . . . . . . . . . . . . . . . 99 Chapter 8:Maintaining Accessibility with CSS . . . . . . . . . . . . . . . . . . . . . . 121 Chapter 9:Integrated CSS Hack Layouts . . . . . . . . . . . . . . . . . . . . . . . . . 131 Chapter 10:Building Navigation Systems . . . . . . . . . . . . . . . . . . . . . . . . . 159 Chapter 11:Troubleshooting CSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 Chapter 12:Implementing CSS Hacks in Dreamweaver. . . . . . . . . . . . . . . . . . 191 Chapter 13:Creating CSS-Savvy Dreamweaver Templates . . . . . . . . . . . . . . . . 219 Appendix A:Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235 Appendix B:CSS Hacks and Filters Charts . . . . . . . . . . . . . . . . . . . . . . . . 243 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 TEAM LinG

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.