Css shapes is a new addition to the Css language which allows developers and designers wrap content around paths like, circles, ellipses and polygons.
Size: 2.54 MB
Language: en
Added: Sep 21, 2016
Slides: 15 pages
Slide Content
Css Shapes Fashion the web
Think outside the box
Intro Css Shapes is a brand new addition to the css language which allows designers and developers to wrap content around paths. Shapes can be defined manually or they can be inferred from images. <img class = ”element” src = ”espresso.png” /> <p> Lorem ipsum… </p> <style> .element{ shape-outside: url( image.png ); shape-image-threshold: 0.5 ; float: left; } </style>
Create Shapes The css shapes specification defines four shape functions: Circle () Ellipse () Polygon () Inset() And three css attributes: Shape-margin Shape-outside Shape-image-threshold
Work with Shapes Css Shapes is still a newborn technology, thus currently only the major browsers support it. Stay tuned for upcoming supporting browsers here: http://caniuse.com/#feat=css-shapes Furthermore, here are some links that can help getting started with Shapes: CSS Shapes Editor extension for Google Chrome T utorial for Photoshop CSS Shapes polyfill
The Future of Css Shapes Shapes-Inside and Css Exclusion
“ There are three responses to a piece of design – yes, no, and WOW! Wow is the one to aim for. ” - Milton Glaser
In a web where content is mostly trapped in simple boxes, CSS Shapes provide a way to create expressive layout, bridging the fidelity gap between web and print design