Book description
CSS lets you create professional-looking websites, but learning its finer points can be tricky—even for seasoned web developers. This fully updated edition provides the most modern and effective tips, tricks, and tutorial-based instruction on CSS available today. Learn how to use new tools such as Flexbox and Sass to build web pages that look great and run fast on any desktop or mobile device. Ideal for casual and experienced designers alike.
The important stuff you need to know:
- Start with the basics. Write CSS-friendly HTML, including the HTML5 tags recognized by today’s browsers.
- Design for mobile devices. Create web pages that look great when visitors use them on the go.
- Make your pages work for you. Add animations that capture the imagination, and forms that get the job done.
- Take control of page layouts. Use professional design techniques such as floats and positioning.
- Make your layouts more flexible. Design websites with Flexbox that adjust to different devices and screen sizes.
- Work more efficiently. Write less CSS code and work with smaller files, using Syntactically Awesome Stylesheets (Sass).
Publisher resources
Table of contents
- CSS: The Missing Manual
- The Missing Credits
- Introduction
-
1. CSS Basics
- 1. HTML and CSS
- 2. Creating Styles and Style Sheets
-
3. Selectors: Identifying What to Style
- Type Selectors: Styling HTML Tags
- Class Selectors: Pinpoint Control
- ID Selectors: Specific Page Elements
- Styling Groups of Tags
- Styling Tags Within Tags
- Pseudo-Classes and Pseudo-Elements
- Attribute Selectors
- Child Selectors
- Siblings
- The :target Selector
- The :not() Selector
- Tutorial: Selector Sampler
- 4. Saving Time with Style Inheritance
- 5. Managing Multiple Styles: The Cascade
-
2. Applied CSS
- 6. Formatting Text
- 7. Margins, Padding, and Borders
-
8. Adding Graphics to Web Pages
- Discovering CSS and the <img> Tag
- Adding Background Images
- Controlling Repetition
- Positioning a Background Image
- Using Background Property Shorthand
- Using Multiple Background Images
- Utilizing Gradient Backgrounds
- Tutorial: Enhancing Images
- Tutorial: Creating a Photo Gallery
- Tutorial: Using Background Images
- 9. Sprucing Up Your Site’s Navigation
- 10. CSS Transforms, Transitions, and Animations
- 11. Formatting Tables and Forms
-
3. CSS Page Layout
- 12. Introducing CSS Layout
- 13. Building Float-Based Layouts
- 14. Positioning Elements on a Web Page
- 15. Responsive Web Design
- 16. Using a CSS Grid System
- 17. Modern Web Layout with Flexbox
-
4. Advanced CSS
- 18. Improving Your CSS Habits
- 19. More Powerful Styling with Sass
-
5. Appendixes
-
A. CSS Property Reference
- CSS Values
-
Text Properties
- color (inherited)
- font (inherited)
- font-family (inherited)
- font-size (inherited)
- font-style (inherited)
- font-variant (inherited)
- font-weight (inherited)
- letter-spacing (inherited)
- line-height (inherited)
- text-align (inherited)
- text-decoration (inherited)
- text-indent (inherited)
- text-shadow (inherited)
- text-transform (inherited)
- vertical-align
- white-space
- word-spacing (inherited)
- List Properties
-
Padding, Borders, and Margins
- box-shadow
- border
- border-radius
- border-top, border-right, border-bottom, border-left
- border-color
- border-top-color, border-right-color, border-bottom-color, border-left-color
- border-style
- border-top-style, border-right-style, border-bottom-style, border-left-style
- border-width
- border-top-width, border-right-width, border-bottom-width, border-left-width
- box-sizing
- outline
- outline-color
- outline-style
- outline-width
- padding
- padding-top
- padding-right
- padding-bottom
- padding-left
- margin
- margin-top
- margin-right
- margin-bottom
- margin-left
- Backgrounds
- Page Layout Properties
-
Animation, Transform and Transition Properties
- @keyframes
- animation
- animation-name
- animation-duration
- animation-timing-function
- animation-delay
- animation-iteration-count
- animation-direction
- animation-fill-mode
- animation-play-state
- transform
- transform-origin
- transition
- transition-property
- transition-duration
- transition-timing-function
- transition-delay
- Table Properties
- Miscellaneous Properties
- B. CSS Resources
-
A. CSS Property Reference
- Index
- About the Author
- Copyright
Product information
- Title: CSS: The Missing Manual, 4th Edition
- Author(s):
- Release date: August 2015
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491918012
You might also like
book
Architecting CSS: The Programmer’s Guide to Effective Style Sheets
Leverage various CSS features in combination with popular architectures in order to bring your style sheets …
book
HTML5: The Missing Manual, 2nd Edition
HTML5 is more than a markup language—it’s a collection of several independent web standards. Fortunately, this …
book
CSS Animations and Transitions for the Modern Web
Modern websites use a variety of animated effects not only to improve usability but also to …
book
Grid Layout in CSS
CSS has had a layout-shaped hole at its center since the beginning. Designers have bent features …