Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSS Shapes: upgrade your page layouts - FEL

nicky
January 25, 2018

CSS Shapes: upgrade your page layouts - FEL

Grids are great, but we can do better. Progressively enhance your layout and break out of the grid.

Here's a link to the PDF with speaker notes: http://symphonicknot.com/css-typography/images/css-shapes-with-notes.pdf.

nicky

January 25, 2018
Tweet

More Decks by nicky

Other Decks in Technology

Transcript

  1. CSS Shapes: upgrade your page layouts Progressively enhance your layout

    @knotnicky and break out of your grids! Grids are great, but we can do more…
  2. CSS Shapes: upgrade your page layouts Progressively enhance your layout

    @knotnicky and break out of your grids! Grids are great, but we can do more…
  3. “There’s a way in which we can use graphic design

    unlike we’ve ever seen on the web before —the power of the entire 20th century brought to the web” - Jen Simmons http://alistapart.com/event/web-typography-layout-past-present-future
  4. “There’s a way in which we can use graphic design

    unlike we’ve ever seen on the web before —the power of the entire 20th century brought to the web” - Jen Simmons http://alistapart.com/event/web-typography-layout-past-present-future
  5. .js

  6. https://codepen.io/knotnicky/pen/Lerqgz .circle { float: left; width: 120px; height: 120px; background-color:

    #FD5605; border-radius: 50%; } <div class="circle"></div> <div class=“content”> <h1>We’re Berlin!</h1> ... </div>
  7. https://codepen.io/knotnicky/pen/Lerqgz .circle { float: left; width: 120px; height: 120px; background-color:

    #FD5605; border-radius: 50%; shape-outside: circle(); } <div class="circle"></div> <div class=“content”> <h1>We’re Berlin!</h1> ... </div>
  8. shape-outside: polygon(0px -40px, //a 0px 180px, //b 220px 180px); //c

    a b c https://codepen.io/knotnicky/pen/LerqKe shape-outside: polygon()
  9. .triangle { border-style: ... border-color: ... } <div class=“triangle"></div> <div

    class=“content”> <h1>We’re Berlin!</h1> ... </div>
  10. .triangle { border-style: ... border-color: ... shape-outside: polygon(...); } <div

    class=“triangle"></div> <div class=“content”> <h1>We’re Berlin!</h1> ... </div>
  11. //polygon(a, b, c, d); shape-outside: polygon(0px 0px, 288px 0px, 466px

    240px, 0px 240px); https://codepen.io/knotnicky/pen/VyEwJG shape-outside: polygon() a d b c
  12. //polygon(a, b, ...); shape-outside: polygon(17px 11px, 82px 42px, 133px 6px,

    150px 62px, 157px 100px, 208px 125px, 244px 164px, 251px 200px, 247px 260px, 284px 263px, 325px … https://codepen.io/knotnicky/pen/xpQygm shape-outside: polygon()
  13. Thanks • twitter.com/knotnicky - share your shapes! • More ideas:

    http://labs.jensimmons.com/ • Firefox nightly tools: https://vimeo.com/250359252 • Icons by nounproject, AlfredoCreates.com