It is the most complete question-and-answer book on CSS available, with over 100 tutorials that show readers how to gain more control over the appearance of their web pages, create sophisticated web page navigation controls, and design for alternative browsing devices, including phones and screen readers.
The CSS code used to create each of the components is available for download and guaranteed to be simple, efficient and cross-browser compatible.
In this book, you'll learn how to start taking full advantage of Internet Explorer 8 using the very latest CSS techniques -- whilst still catering for those nasty old browsers. You'll unearth what's put the final nail in the HTML table-based layout coffin, and gain an understanding from two experts why CSS has a very bright future.
Some of the valuable insights in this book include:how you can take full advantage of IE8how to take CSS tables to the limit and beyondletting you say goodbye to old hacks and workarounds FOREVER!help you rediscover what you first loved about CSSensure make the most of what CSS has to offerunderstand the road ahead for CSS
CSS was conceived in an age when web site design was simple; its creators never anticipated the level of intricacy required in the designs that it would be asked to deliver today. Clever designers figured out ways to make CSS do what they needed, but using techniques so convoluted that it became unpredictable and difficult to master. CSS just became too hard ...
The good news is, that's all about to change, and this book will show you how!
Important Notice: Media content referenced within the product description or the product text may not be available in the ebook version.
Size text using keywords, percentages, and ems to allow more user control. Plan for vertical expansion of horizontal page components. Use floats to achieve grid-like results. Ensure that content is still readable in the absence of images or CSS. Strip the presentation from data tables, and rebuild with CSS. Progressively enhance your designs using HTML5 and CSS3. Visit the companion website at simplebits.com/bulletproof to download finished files, additional resources, and book updates.
Sams Teach Yourself Responsive Web Design in 24 Hours helps you create websites that work equally well on everything from smartphones and tablets to multi-screen monitors.
CONTENTS AT A GLANCE
H OUR 1: What Is Responsive Web Design?
• History of Responsive Web Design
• Why We Need Responsive Web Design
HOUR 2 : Alternatives to Responsive Web Design
• CSS Layouts
• Detection Scripts
HOUR 3: The Growth of Mobile
• Basic Cell Phones
• Retina Devices
• Why Responsive Design Is Important
HOUR 4 : Progressive Enhancement
• What Is Progressive Enhancement?
• How to Use Progressive Enhancement on a
• Benefits of Progressive Enhancement
HOUR 5 : HTML for Responsive Web Design
• Clean Code
• Don’t Forget Semantic Elements
• Validating Your HTML
HOUR 6: Basic CSS
• How to Write CSS Rules
• Embedded and External Style Sheets
• Styling Fonts and Colors
• Creating a Layout with CSS
• Understanding Cascading and Specificity
PART II: BUILDING A RESPONSIVE WEBSITE
HOUR 8: Planning a Responsive Website
• Should You Make Your Website Responsive?
• How to Plan for a Responsive Website
HOUR 9: Mobile First
• Why Design for Mobile First?
• What Makes a Site Mobile Friendly?
• What About Mobile Only?
HOUR 1 0: CSS Media Queries
• What Is a Media Query?
• Media Query Expressions
HOUR 1 1: Breakpoints
• What Is a Breakpoint?
• How to Define Breakpoints in CSS
• Optimal Breakpoints
HOUR 12: Layout
• What Is Web Layout?
• Types of Layouts
• Columns in Layout
HOUR 13 : Navigation
• Why Responsive Navigation Is Important
• What Makes Navigation Mobile Friendly?
• Basic RWD Navigation Patterns
HOUR 14: Responsive Fonts and Typography
• Using Web Fonts
• Sizing Typography
• Relative Versus Absolute Font Sizes
• New CSS3 Measurement Units
HOUR 15: Creating and Using Images in RWD
• Making Images Responsive
• Improving Download Speeds
• Building and Using Retina-Ready Images
HOUR 16: Videos and Other Media in RWD
• Making YouTube Videos Responsive
HOUR 17: Tables in Responsive Web Design
• Tables on Small Devices
• Can Tables Be Responsive?
• Where Do Layout Tables Fit in RWD?
HOUR 18 : Responsive Web Forms
• HTML5 Forms
• Making Web Forms Usable
• Creating Responsive Forms
HOUR 19 : Testing Responsive Websites
• Testing in Your Browser
• Testing in a Device for All Your Breakpoints
• How to Test When You Don’t Have the Devices
HOUR 20 : Problems with Responsive Web Design
• RWD Can Make More Work for Designers
• Not All Customers Like Responsive Sites
• RWD May Break Advertising
PART III: IMPROVING RESPONSIVE DESIGN
HOUR 21: Tools for Creating Responsive Web Designs• Planning and Designing Your RWD Site
• HTML Element and CSS Tools
• Web Editors for Building Responsive Web Pages
HOUR 22 : Device and Feature Detection
• Why Use Detection Scripts
HOUR 23: Using RESS with RWD
• What Is RESS?
• Benefits of Using RESS
• Getting Started with RESS
• When to Use RESS
HOUR 24: RWD Best Practices
• Give Everyone the Best Experience
• Use the Best Breakpoints You Can
• Be Flexible and Think Small
• Don’t Forget the Content
• Manage Costs