Simply put, Cascading Style Sheets (CSS) is a way to separate a document's structure from its presentation. The benefits of this can be quite profound: CSS allows a much richer document appearance than HTML and also saves time -- you can create or change the appearance of an entire document in just one place; and its compact file size makes web pages load quickly.
CSS: The Definitive Guide, 3rd Edition, provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, lists and generated content, table layout, user interface, paged media, and more. Author Eric Meyer tackles the subject with passion, exploring in detail each individual CSS property and how it interacts with other properties. You'll not only learn how to avoid common mistakes in interpretation, you also will benefit from the depth and breadth of his experience and his clear and honest style. This is the complete sourcebook on CSS.
The 3rd edition contains:
CSS is a constantly evolving language for describing the presentation of web content on screen, printers, speech synthesizers, screen readers, and chat windows. It is used by all browsers on all screen sizes on all types of IoT devices, including phones, computers, video games, televisions, watches, kiosks, and auto consoles. Authors Eric Meyer and Estelle Weyl show you how to improve user experience, speed development, avoid potential bugs, and add life and depth to your applications through layout, transitions and animations, borders, backgrounds, text properties, and many other tools and techniques.
This guide covers:Selectors, specificity, and the cascadeValues, units, fonts, and text propertiesPadding, borders, outlines, and marginsColors, backgrounds, and gradientsFloats and positioning tricksFlexible box layoutThe new Grid layout system2D and 3D transforms, transitions, and animationFilters, blending, clipping, and maskingMedia and feature queries
Short and sweet, this short book is an excerpt from the upcoming fourth edition of CSS: The Definitive Guide. When you purchase either the print or the ebook edition of Padding, Borders, Outlines, and Margins in CSS, you’ll receive a discount on the entire Definitive Guide once it’s released. Why wait? Learn how to bring life to your web pages now.Understand the CSS box model, including the way different properties relate to one anotherUse tricks for defining padding values, including inline element paddingExplore border width, style, and color, plus the use of border imagesLearn how to use outlines: presentational elements that won’t affect layoutDive into the use of margins, including the way top and bottom margins collapse
Short and deep, this book is an excerpt from the upcoming fourth edition of CSS: The Definitive Guide. When you purchase either the print or the ebook edition of Positioning in CSS, you’ll receive a discount on the entire Definitive Guide once it’s released. Why wait? Make your web pages come alive today.
You'll learn how to:Remove an element from a document but keep its new position part of the document’s flow with absolute positioningKeep an element like a masthead or sidebar in one fixed position in the viewport with fixed positioningPreserve an element’s shape and the space it occupied in the document with relative positioningMake a document’s headers selectively stay still in response to scrolling conditions with sticky positioning
Eric A. Meyer is an author, speaker, blogger, sometime teacher, and co-founder of An Event Apart. He’s a two-decade veteran of the Web and web standards, a past member of the W3C’s Cascading Style Sheets Working Group, and the author of O’Reilly’s CSS: The Definitive Guide.
This book contains chapters from the upcoming fourth edition of CSS: The Definitive Guide. When you purchase either the print or the ebook edition of Values, Units, and Colors, you’ll receive a significant discount on the entire Definitive Guide when it’s released. Why wait when you can learn how to use units and other key CSS3 features right away?Use RGB or HSL values to mix your own colors, and designate the degree of opacityLearn how to apply global keywords introduced in CSS3Use string values to wrap a sequence of text characters in quotesDescribe margins, letter spacing, and other properties, with either fixed or relative length unitsUnderstand how number, integer, and percentage values differExplore CSS3 unit types for describing display resolutionUse time values for transitions and animations
Short and deep, this book is an excerpt from the upcoming fourth edition of CSS: The Definitive Guide. When you purchase either the print or the ebook edition of Table Layout in CSS, you’ll receive a discount on the entire Definitive Guide once it’s released. Why wait? Make your web pages come alive today.
You’ll explore:Formatting—learn how elements such as display values, anonymous objects, and table layers relate to each other when you assemble CSS tablesCell border appearance—understand two distinct approaches (the separated model and the collapsed model) that govern how (or if) borders mergeTable sizing—determine table width by using either a fixed- or automatic-width layout, and learn how heights are calculated