flexbox
play

FLEXBOX 1 CHRIS SAUVE 2 LAYOUT STRATEGIES 3 TABLES 4 JUST - PowerPoint PPT Presentation

FLEXBOX 1 CHRIS SAUVE 2 LAYOUT STRATEGIES 3 TABLES 4 JUST DONT. 5 ABSOLUTE POSITIONING 6 INLINE BLOCK 7 FLOATS 8 THINK DIFFERENT 9 CONTENT-OUT LAYOUT 10 parent child child child 1 2 3 11 parent child child


  1. <div ¡class="card"> ¡ ¡ ¡<header ¡class="card__section ¡card__section-­‑-­‑ header"> ¡ ¡ ¡ ¡ ¡ ¡<h1 ¡class=“heading">Medium ¡Heading</h1> ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡<div ¡class="button-­‑group"> ¡ ¡ ¡ ¡ ¡ ¡ ¡<div ¡class="button-­‑group__primary"> ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡<button ¡class="button ¡button-­‑-­‑ primary">Primary ¡Action</button> ¡ ¡ ¡ ¡ ¡ ¡ ¡</div> ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡<div ¡class="button-­‑group__secondary"> ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡<button ¡class="button">Action ¡1</button> ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡<button ¡class="button">Action ¡2</button> ¡ ¡ ¡ ¡ ¡ ¡ ¡</div> ¡ ¡ ¡ ¡ ¡</div> ¡ ¡ ¡</header> ¡ </div> ¡ 93

  2. 94

  3. STEP 1 .card__section-­‑-­‑header ¡{ ¡ ¡ ¡display: ¡flex; ¡ ¡ ¡align-­‑items: ¡center; ¡ } ¡ .heading ¡{ ¡ ¡ ¡flex: ¡1 ¡0 ¡auto; ¡ } ¡ .button-­‑group ¡{ ¡ ¡ ¡flex: ¡0 ¡0 ¡auto; ¡ } 95

  4. 96

  5. STEP 2 .button-­‑group ¡{ ¡ ¡ ¡display: ¡inline-­‑flex; ¡ ¡ ¡flex-­‑direction: ¡row-­‑reverse; ¡ } ¡ .button-­‑group__primary, ¡ .button-­‑group__secondary ¡{ ¡ ¡ ¡display: ¡flex; ¡ } 97

  6. 98

  7. 99

  8. STEP 3 .card__section-­‑-­‑header ¡{ ¡ ¡ ¡flex-­‑wrap: ¡wrap; ¡ } 100

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend