- tag, 16, 168 :only-child pseudo-element, 63–64 opacity property, 671 opacity setting, 442 Open Type fonts, 127–128 Opera browser -webkit- vendor prefix for, 341 INDEX WWW.EBOOK777.COM free ebooks ==> www.ebook777.com Web Developer extension for, 15 WOFF format support in, 127 order property (flex items), 541–544 origin/clipping of background images, 243–245 origin property (transforms), 328–329 orphans property, 671 outline properties, 651 overflow:hidden property, 407 overflow property (box model), 208, 213 overriding styles selectively, 107–108 P
tag, 16, 17 padding See also margins and padding adding to tables, 360 in CSS layout, 396 inside borders, 198 padding-box option (box-sizing), 207 padding-box values (box-sizing), 417 padding-left property, 170 padding-top property, 33 properties reference, 652–653 property, 183, 185, 230 page-break-inside property, 672 page layout properties, 657–664 paragraphs adjusting line spacing, 162–164 aligning text, 164 first lines/letters, 166–168 margins between paragraphs, 166 styling, 56 tutorial, 175–179 parameters (Sass), 621–622 parent selectors (Sass), 609–611 parent tags, 51 partials, Sass, 600–602 pausing animations, 348–349 percentage values margins/padding and, 188 overview, 640 positioning background images using, 240–242 sizing text with, 152–156 spacing lines by, 163 photos photo gallery, creating (tutorial), 266–270 placing captions on (tutorial), 452–456 pixels device/CSS pixels, 476 overview, 639 sizing fonts using, 151–152 spacing lines by, 163 placeholder selectors (Sass), 615–617 play-state property (animations), 348–349 PNG files, 233 pop-up menus, 296 positioning background images background-position property, 255, 289, 299 defining origin/clipping, 242–244 fixing images in place, 242–243 with keywords, 236–238 with percentage values, 240–242 with precise values, 239–240 scaling images, 245–246 positioning elements See CSS Positioning preloading rollovers (sprites), 298–299 printing background images, 242 properties animation (reference), 663–666 background (reference), 654–657 borders (reference), 648–650 commonly used with images, 229–230 easy viewing of, 30 extending Sass, 612–614 list (reference), 647–648 margins and padding (reference), 652–653 non-inherited, 94–95 outline, 651 overview, 23 page layout (reference), 657–664 shorthand, 575–576 table (reference), 668–669 text (reference), 642–646 transform (reference), 667 transition (reference), 667 vendor prefixes, 321 pseudo-classes/elements, 55–59 pseudo-elements, 55–59 Pure.css framework, 497 INDEX WWW.EBOOK777.COM PURE.CSS FRAMEWORK 687 free ebooks ==> www.ebook777.com QUERIES, MEDIA Q queries, media See media queries quirks mode (browsers), 17 quote marks (“ “) for fonts, 124 removing browser-created, 580 R radial gradients basics, 258–261 repeating, 261 radio buttons, 367 references, CSS, 673–674 relative positioning, 430–431, 437–439 rel attribute, 27, 34 rem measurement units, 155–156, 640 repeating linear gradients, 257–258 repeating radial gradients, 261 resetting CSS See CSS reset Responsinator, 475 responsive web design (RWD) basics, 457–458 flexible grids, 468–472 fluid images, 472–476 media queries See media queries overview, 387–388, 457–458 scaling videos/Flash content, 476 setting up web pages for, 459–461 testing, 475 tutorial adding phone styles, 487–491 adding styles for tablet screens, 482–486 fluid images, 480–481 HTML source order, changing, 477–480 Retina Displays (Apple), 152 rgba() color method/values, 73, 149–150 RGB color values, 638–639 rollovers (CSS sprites) creating (tutorial), 312–315 preloading, 298–299 root-relative paths (URLs), 34, 237 rotate function (transforms), 321–322 rounded corners in borders, 199–201 in table cells, 363 688 rows/columns See also columns; grid systems styling (tables), 363–365 rules (styles), 22 S Safari vendor-prefixed flexbox properties, 532 vendor prefixes in, 530 sans-serif fonts, 125 Sass (CSS preprocessor) avoiding the command line, 596 converting current site to, 597–598 extending properties See extending Sass properties installing, 591–595 mathematical operations, 606 media queries and, 626–630 mixins See mixins (Sass) nesting selectors, 607–612 organizing files, 596 organizing styles with Sass partials, 600–602 overview, 589–591, 595 running, 597–600 troubleshooting with CSS source maps, 631–633 variables, 604–607 saturation (color), 150–151 Scalable and Modular Architecture for CSS (SMACSS), 588 scale function (transforms), 322–325, 350 scaling background images, 245–246 search engines, HTML and, tag (HTML5), sectioning elements (HTML5), 390–391 tag, 367 ::selection pseudo-element, 58–59 selectively overriding styles (cascade), 107–108 selectors attribute, 59–61 child, 61–65 child type, 65–67 class, 43–46 descendent, 50–55 group, 49, 612–613 INDEX WWW.EBOOK777.COM free ebooks ==> www.ebook777.com ID, 46–48 nesting (Sass), 607–612 :not(), 69–70 overview, 21–23 parent (Sass), 609–611 placeholder (Sass), 615–617 :target(), 68–69 tutorial creating class selector, 78–80 creating descendent selector, 80 creating group selector, 73–75 creating ID selector, 75–77 finishing touches, 81–84 preparing web page with basic styles, 70–73 type (element) selectors, 42–43 universal (*), 49–50 serif fonts, 124–125 services, font, 148 shadows, adding to text, 160–162 shorthand animations, 347–348 background property, 247–249 border property, 195–196 margins/padding, 189 properties overview, 575–576 transitions, 336–337 showcase CSS sites, 676 sibling tags, 52, 67–68 sidebars, building (tutorial), 223–227 sizing background images, 245–246 fonts, 151–156 Skeleton grid system, 497–501 sketching out page content, 393–394 skew function (transforms), 327–328 small caps text, 158 Snook, Jonathon, 588 source maps, CSS, 631–633 source order, HTML, 212, 469–470, 477–480 space adjusting around tags (tutorial), 219–223 between table cells, 362 controlling with margins/padding See margins and padding removing with negative margins, 191–192 spaces in styles, 23–24 tightening for mobile devices, 461 spacing lines of text, 162–164 words/letters, 159–160 tag, 7–8, 368–369, 444 tags, 47 specificity of styles (cascade) avoiding specificity wars, 108–109 basics, 102–103 changing, 105–107 last style tiebreaker, 103–104 overruling, 105 sprites (preloading rollovers), 298–299 src attribute, 27 src property, 132 SSL (secure socket layer), 300 stacking elements, 439 stacks, font, 123, 605–606 static positioning, 431–432 Stencil Kit (Yahoo), 393 tag, 52 styles accumulation of inherited (cascade), 98–99 adding to grids (tutorial), 515–518 anatomy of, 21–24 creating hybrid (cascade), 113–114 creating inline, 28–29 creating using web fonts, 134–135 definition of, 19 grouping related, 576–577 inline, 26 for links, 55–56 organizing with Sass partials, 600–602 for phones (tutorial), 487–491 rule of directly applied, 99–100 selectively overriding, 107–108 tag, 26, 31 for tablet screens (tutorial), 482–486 tabs in, 23–24 tips for organizing, 570–579 style sheets adding media queries to, 465–466 basic structure for media queries, 466–467 creating external, 32–38 creating internal, 29–31 CSS reset, 109–111 INDEX WWW.EBOOK777.COM STYLE SHEETS 689 free ebooks ==> www.ebook777.com STYLING TABLES definition of, 19, 24 internal/external, 24–27 multiple, 577–579 naming, 26 streamlining with inheritance, 86–87 using multiple, 577–579 styling tables adding padding, 360 borders, 362–363 overview, 359–360 rows/columns, 363–365 tutorial, 370–375 vertical/horizontal alignment, 360–362 submit buttons (forms), 378–379 Sullivan, Nicole, 588 SVGs (Scalable Vector Graphics) files, 233 format, 128 T tables building with HTML, 357–359 properties (reference), 668–669 styling See styling tables tag, 14 tabs in styles, 23–24 tags adjacent sibling, 67–68 adjusting space around (tutorial), 219–223 applying multiple classes to, 45–46 block-level, 192 in HTML5, 8–9 multiple styles applied to, 100–102 overview, xv–xvi, positioning rules for, 436 styling groups of, 49–51 styling tags within tags, 50–55 styling with type selectors, 42–43 tags/attributes to avoid, 13–14 :target() selectors, 68–69 text editors, 28 inserting variables into (mixins), 622–623 properties reference, 642–646 text-align property, 360–361 text-decoration property, 283 text field tags (forms), 367 text-transform property, 177 690 text formatting adding color to, 147–151 adding shadows to, 160–162 fonts, 121–126 formatting words/letters, 156–160 paragraph formatting See paragraphs shorthand method for formatting, 165 sizing, 151–156 styling lists, 168–172 text-decoration property, 158–159 text-indent property, 164–165 text-shadow property, 160–161 text-transform property, 157–158 tutorial adding classes, 181–182 finishing touches, 182 formatting headings/paragraphs, 175–179 formatting lists, 178–180 setting up page, 172–175 tiling background images, 234 timing animations, 344–345 timing-function property (transitions), 332–334 title attribute, 59 transforms 3D transforms, 330 multiple transformations, 328 overview, 319–320 properties reference, 667 rotate function, 321–322 scale function, 322–325 skew function, 327–328 transform-origin property, 328–329 translate function, 325–327 tutorial: transformations/animation/ transitions, 349–355 transitions adding, 331–332 delaying start of, 334–336 overview, 330–331 properties for smoothe, 337 properties (reference), 667 shorthand, 336–337 timing, 332–334 triggering with JavaScript, 335 tutorial: transformations/animation/ transitions, 349–355 INDEX WWW.EBOOK777.COM free ebooks ==> www.ebook777.com translate function (transforms), 325–327 tree diagrams (HTML tags), 50–53 triggering transitions with JavaScript, 335 triggers (transitions), 330–331 True Type fonts, 127–128 tutorials background images, using, 270–278 cascade, 111–117 flexbox layout, building, 556–565 forms, styling, 375–381 grid systems, 509–525 images, framing, 261–266 inheritance, 90–95 margins/backgrounds/borders, 216–227 multiple-column, float-based layout, 417–428 navigation bar, creating, 308–316 photo gallery, creating, 266–270 positioning page elements, 448–456 responsive web design (RWD), 476–490 selectors, creating, 70–80 styles/style sheets, creating, 27–39 styling links, 302–308 text formatting, 172–184 transforms/transitions/animations, 349–355 type (element) selectors, 42–43, 65–67 TypeKit, Adobe, 148 U tag, 16, 168 underlining links, 283–285 universal selectors (*), 49–50 unordered lists in navigation bars, 290–291 using child selectors for, 67 URLs (Uniform Resource Locators) http:// and https://, 300 links to specific file types, 302 types of, 237 values, 641 V validating CSS, 27 HTML, 15 values, property overview, 23 reference, 637–641 setting positioning, 432–435 variables breakpoint, 627–628 inserting into text (mixins), 622–623 Sass, 604–607 vector graphics, 128 vendor prefixes, 58, 321, 341, 343 vertical-align property, 360, 369 vertical/horizontal alignments (tables), 360–362 vertical navigation bars, 291–293 vh/vw (viewport height/width) units, 640 :visited pseudo-class, 55, 280, 289, 304 WEBSITES FOR DOWNLOADING W W3C validator, 15, 27 web color keywords, 638 web fonts bold/italic variants, 135–141 creating styles using, 134–135 finding, 129 @font-face directive, 131–134 font file types, 127–128 generating multiple formats, 129–131 Google See Google web fonts legal issues with, 128–129 overview, 123, 126 WebKit syntax, 352 web pages compartmentalizing, 584–585 layouts, types of, 385–387 websites for downloading apps for compiling Sass files, 596 Autoprefixer, 530 CSS software, xvii–xviii CSS templates/designs, 402 extension for validating web pages, 15 free images, 249 grid systems, 497 Grunt, 591 Gulp, 591 HTML5 elements flow chart, normalize.css style sheet, 111, 217 Ruby installer, 592 INDEX WWW.EBOOK777.COM 691 free ebooks ==> www.ebook777.com WEBSITES FOR FURTHER INFORMATION 692 Sass mixin libraries, 622 Skeleton grid system, 498 Stencil Kit (Yahoo), 393 web fonts, 129 websites for further information 3D transforms, 330 adaptive images, 475 Adobe Creative Cloud service, 148 animatable properties, 331 blend-modes in Photoshop/CSS, 247 box-sizing, 417 browser support of CSS selectors, 57 browser usage, 13 building search-friendly websites, cache refreshing, 371 calculating specificity, 102 Ceaser tool (timing functions), 333 color convertor, 217 color keywords, 638 color picker, 639 color-related resources, 148 colors listed/organized, 149 containing floats, 406 CSS buttons, 287 CSS Font Stack, 124 CSS gallery, 69 CSS grid layout module, 393 CSS Minifier, 570 CSS reset (Meyers), 110 CSS resources, 673–676 CSS specifications/references, 637 CSS sprites, 299 CSS transforms, visualizing, 328 CSS transitions with JavaScript, 335 CSS validation, 27 doctypes, xv document-/root-relative links, 34 drop-down menus, 296 embedded YouTube videos, 476 equal-height column techniques, 414 fixed-width design, 386 flexbox examples, 548, 562 form designs, 366 generated content phenomenon, 670 Google Analytics, 13 Google Fonts, 141, 142 gradient examples, 257 graphical icons, 135 grid systems, building, 525 HSL color picker, 151 HTML5 sectioning elements, 391 HTML5 tags, HTML definition lists, 16 HTML tutorials, xiv, ID selectors, avoiding, 109 image sizes on mobile devices, 475 inline media queries, 627 liquid layouts, 386 matrix method (transforms), 328 media queries, 465 Mobile First design, 393 multi-columns, 409 navigating Mac file system, 598 navigation menus, 462 Normalize.css project, 582 Object Oriented CSS, 588 pop-up tooltips, 442 properties for smoother transitions/ animations, 337 pseudo-classes for forms, 370 Pure CSS Menu generator, 296 quirks mode, 18 responsive web design (RWD), 458 Safari flexbox vendor prefixes, 532 Sass, 590 Sass for writing media queries, 630 Sass math, 606 Sass mixins, 620 Sass projects, organizing, 602 Scalable and Modular Architecture for CSS (SMACSS), 588 Selectoracle, 59 SVG resources, 233 text shadows, 161 timing function property (transitions), 333 tutorials for analyzing CSS (Chrome), 104 typographic contrast, 156 W3C, 15 Webfont Generator, 130 web pages, tools for previewing, 475 Windows command prompt, 593, 598 widows property, 672 width property Box Model See height/width properties (box model) setting for floats, 400 usage of, 179 Windows, installing Sass on, 592–594 INDEX WWW.EBOOK777.COM free ebooks ==> www.ebook777.com ZOOMING WEB PAGES WOFF (Web Open Font Format), 127 words formatting, 156–160 spacing, 159–160 wrapping content with floating elements, 210–215 wrapping flex items, 552–553 Wroblewski, Luke, 393 X XHTML, 18 Y YouTube videos, 476 Z z-index property, 439–440 values, 543 zooming web pages, 152 INDEX WWW.EBOOK777.COM 693 free ebooks ==> www.ebook777.com TH CSS E NG CD I S S MI no ’s There ook; b s i ith th w 5.00 D $ C d e t sav s u j you nd file, a e c i t prac this ress, ed in d n d o i a t n Web e me com ingle e softwar s uals n y r a e l v m b ada sing ad, e n) Inste of downlo ble at mis D ico ks, C a l e i g c a n n pie issi is av t of li book click the M a tidy lis ( ter l find chap you’l y b e r d e Th ize organ Don’t miss a thing! Sign up for the free Missing Manual email announcement list at missingmanuals.com We’ll let you know when we release new titles, make free sample chapters available, and update the features and articles on the Missing Manual website WWW.EBOOK777.COM ... Google+: The Missing Manual by Kevin Purdy • HTML5: The Missing Manual, Second Edition by Matthew MacDonald • iMovie: The Missing Manual by David Pogue and Aaron Miller • iPad: The Missing Manual,. .. Third Edition by Matthew MacDonald • CSS3 : The Missing Manual, Third Edition by David Sawyer McFarland • Dreamweaver CS6: The Missing Manual by David Sawyer McFarland • Dreamweaver CC: The Missing. .. The Missing Manual by David Pogue • Windows 8: The Missing Manual by David Pogue • WordPress: The Missing Manual, Second Edition by Matthew MacDonald • Your Body: The Missing Manual by Matthew