Grid Layout is here! What is it? Why is it different to flexbox? How do I get started? What about old browsers? All these questions and more in a high speed tour of the spec.
Rachel Andrew presented on CSS Grid Layout and Flexbox at Smashing Conf SF. She began by explaining the differences between Grid and Flexbox - Grid is for two-dimensional layout while Flexbox is for one-dimensional. She demonstrated examples of layouts using Grid and why it may be preferable to Flexbox in certain cases. Rachel then covered using Grid in production, responsive design with Grid, fallback options for older browsers, and ways for developers to encourage browser vendors to support new features. She provided several resources for learning more about Grid.
This document introduces CSS Grid Layout and provides an overview of its key concepts and features, including:
- Defining a grid with display: grid and grid-template properties
- Placing grid items on the grid using line numbers, line names, and grid-area
- Automatic placement of grid items with grid-auto-flow
- Accessibility considerations for maintaining source order
- When to use Grid versus Flexbox for layout needs
- Animating grid properties and using feature queries for fallback support
This document introduces CSS Grid Layout and provides examples of how to define a grid, place items on the grid using line numbers and names, create named grid areas, and redefine the grid at different breakpoints. Key aspects covered include defining grid columns and rows using fractional units and repeat functions, creating gaps between rows and columns, positioning items on the grid using line-based placement properties, and describing layouts using grid-template-areas.
This document summarizes Rachel Andrew's presentation on CSS Grid Layout. Some key points include:
- CSS Grid Layout provides a two-dimensional grid system for CSS layout, as an alternative to floats and positioning.
- Grid uses line-based placement rather than block/inline flows, allowing items to be placed precisely on the grid.
- Defining a grid involves setting grid-template-columns, grid-template-rows and other properties to establish the structure and tracks.
- Items can then be placed on the grid using grid-row and grid-column to position them across specific row and column lines.
This document discusses CSS Grid Layout and provides examples of how to define grids and place items on grids using CSS Grid properties. Some key points:
- CSS Grid allows defining a grid on any element using display: grid and then placing child elements into the grid with grid-column, grid-row and other properties.
- Grids can be defined explicitly with grid-template-columns/rows or implicitly with auto-placement of items.
- Fraction units (fr), minmax(), repeat() and auto-fill can create flexible and responsive grid layouts.
- Items can be placed on grids by line number, named lines, or named grid areas.
- Grid layout can be redefined
Rachel Andrew discusses modern CSS layout techniques like Flexbox and CSS Grid Layout. She explains how these new specifications allow for responsive design that adapts to different screen sizes in a fluid, flexible way. Andrew also emphasizes the importance of accessibility and maintaining proper source order when using these techniques. The talk explores various properties, functions, and examples to demonstrate how Flexbox and CSS Grid can be used to create responsive layouts in a semantic and accessible manner.
CSS Grid Layout allows for two-dimensional page layouts using rows and columns to position elements. It offers several methods for defining the grid including explicit definition with grid-template-columns/rows, implicit definition by letting grid create tracks automatically, and using fractional units and repeat functions for flexible layouts. Elements can then be placed on the grid using line-based positioning with grid-column/row or named grid areas. Media queries allow the grid definition and element placement to adapt at different breakpoints.
Talk Web Design: Get Ready For CSS Grid LayoutRachel Andrew
- CSS Grid Layout provides a new two-dimensional grid-based layout system for CSS. It allows developers to divide available space on a page into columns and rows, and place elements into those areas.
- The document discusses defining a CSS grid with properties like grid-template-columns, grid-template-rows, and grid-template-areas. It also covers positioning items onto the grid using line-based placement with grid-column, grid-row etc. or named grid areas.
- CSS Grid Layout offers developers greater control over page layout compared to older methods and allows the layout to be redefined responsively with media queries.
What I discovered about layout vis CSS GridRachel Andrew
The document summarizes key concepts the author learned about CSS Grid layout. Some key points include:
- CSS Grid handles box alignment and positioning in a logical way based on writing direction rather than physical positioning.
- The display property controls how elements generate boxes and formatting contexts for child elements. Grid items are always blockified.
- Features like subgrid, display: contents, and logical properties give more control over layout.
- Understanding how CSS Grid handles boxes and positioning provides tools to build flexible and accessible layouts.
Rachel Andrew gives a presentation on modern CSS layout techniques including Flexbox and CSS Grid Layout. She discusses how these techniques allow for flexible and responsive design that separates layout from the semantic structure of the content. Flexbox is well-suited for one-dimensional layouts while Grid Layout enables two-dimensional positioning. Feature queries can help support these new techniques for browsers that do not yet support them.
The document provides an overview and examples of various CSS features, including box alignment, Flexbox, CSS Grid Layout, CSS Shapes, Feature Queries, Initial Letter styling, Writing Modes, and CSS Custom Properties. Codepen examples are included to demonstrate the features discussed. The document covers the purpose and usage of each feature at a high level.
This document introduces CSS Grid Layout and provides examples of how to implement a grid using CSS Grid properties. Key points include:
- CSS Grid Layout allows positioning of elements within a grid system defined entirely through CSS. This avoids layout hacks and redundant markup needed with previous methods.
- Grid properties like grid-template-columns, grid-template-rows define the structure of the grid. grid-column, grid-row position elements within the grid.
- Named lines, grid areas, and media queries allow defining different grid layouts for different screen sizes without changing markup order.
- Repeating tracks, flexible track sizes (fr units), and line spanning provide powerful grid configuration options.
CSS Grid Layout - An Event Apart OrlandoRachel Andrew
My slides from An Event Apart Orlando. Also take a look at the code examples and resources at https://rachelandrew.co.uk/speaking/event/an-event-apart-orlando-special-edition-2016
This document summarizes CSS Grid Layout, a new two-dimensional grid system being added to CSS. It discusses some of the limitations of existing CSS layout methods and how Grid Layout addresses them. Key points include: Grid Layout uses line-based placement to position items, grid tracks can be flexible or fixed widths, areas can be explicitly or implicitly named, and the system avoids hacks and limitations of previous methods.
This document discusses CSS Grid Layout and provides examples of how to define grids and place items on grids. Some key points:
- CSS Grid Layout allows dividing available space into columns and rows to position elements.
- Grids are defined on parent elements using properties like grid-template-columns, grid-template-rows, and grid-template-areas.
- Child elements can be placed on the grid using line-based placement with properties like grid-column and grid-row, or by targeting named lines and areas.
- Grids can be redefined at different breakpoints to create responsive layouts without changing HTML structure.
An Event Apart Nashville: CSS Grid LayoutRachel Andrew
The document summarizes Rachel Andrew's presentation on CSS Grid Layout. Some key points:
- CSS Grid Layout provides a new two-dimensional grid system for CSS layout, addressing limitations of floats and flexbox.
- Grid uses line-based placement, with grid tracks defined by grid-template-columns/rows and items placed using grid-column/row properties.
- Common layouts like Holy Grail can be easily created with Grid. Grid also allows rearranging layouts responsively.
- Grid introduces concepts like implicit and explicit grid lines, fr units, and named grid areas to semantically define layout structures.
An Event Apart Seattle - New CSS Layout Meets the Real WorldRachel Andrew
The document discusses several new CSS layout techniques including the media object, magazine-style layouts, and fancy headers.
[1] The media object pattern is demonstrated using CSS Grid Layout, with an image and text wrapping around it. Flexbox is also used to make the object flexible. [2] Magazine-style multi-column layouts are created with grid areas, minmax rows, and object-fit for images. [3] Fancy headers are made with circles and curved text using border-radius, shape-outside, and flexbox alignment. Feature queries allow fallback styles for older browsers.
This document provides an overview of CSS Grid layout and its properties for creating grid-based page layouts. CSS Grid allows dividing available space into columns and rows, and placing elements into specific areas. Key properties include display: grid;, grid-template-columns/rows to define the grid structure, and grid-column/row to position items. Grid provides a two-dimensional layout system as opposed to the one-dimensional Flexbox, and is well-suited for page-level layouts rather than component-level layouts.
CSS Grid Layout: An Event Apart Boston 2016Rachel Andrew
This document provides an overview and introduction to CSS Grid Layout. It discusses defining a grid with properties like display: grid, grid-template-columns, grid-template-rows, and fr units. It covers placing items on the grid using line numbers, line names, and grid areas. It also demonstrates rearranging the layout at different breakpoints and using implicit rows.
The document summarizes Rachel Andrew's presentation on modern CSS layout techniques including Flexbox and CSS Grid Layout. Some key points include:
- Flexbox and CSS Grid Layout provide improved tools for page layout compared to older methods like floats.
- These techniques separate logical structure from visual presentation, allow responsive design, and give more control over alignment.
- Features like grid-auto-flow can automatically position items but authors must be careful not to compromise accessibility or semantics.
- Flexbox is well-suited for one-dimensional layouts while Grid excels at two-dimensional layouts like pages with columns.
CSS Grid Layout. Implementation status and roadmap (Webkit Contributors Meeti...Igalia
The document discusses CSS Grid Layout, which provides a mechanism for dividing space into rows and columns to define a grid-based layout. It allows precise placement of elements, reflowing optimally for different devices. The document covers grid concepts like lines, tracks, cells and areas. It also describes the syntax for defining track breadths and placing items in the grid. Implementation status is provided, with grid layout already shipped in IE and work ongoing in Blink and WebKit.
The document discusses new CSS layout techniques including Flexbox and CSS Grid Layout. These allow for precise control of alignment both horizontally and vertically, separation of document structure from visual display, and responsive and flexible layouts by default. Examples are provided showing how Flexbox and Grid Layout can be used to create common layout patterns like equal height columns and reordering of content in a responsive way.
This document provides an overview and examples of CSS Grids and Flexbox layout techniques. It discusses how Flexbox allows items to be laid out in a single direction row or column, and how CSS Grids enable two-dimensional page layouts using rows and columns. Examples are given for creating navigation menus, image galleries, and multi-column page designs using these new CSS properties. Media queries are also used to redefine grid layouts at different screen sizes.
Evergreen websites for Evergreen browsersRachel Andrew
Grid is for two-dimensional layout, while flexbox is for one-dimensional layout. Grid allows control of layout from the parent container by defining column and row tracks on the container, rather than adding properties to child items. This allows child items to be positioned and overlap in the grid space without adding widths or heights to them directly. Feature queries can be used to provide an enhanced grid-based layout for supporting browsers while avoiding conflicts with non-supporting browsers.
DevFest Nantes - Start Using CSS Grid Layout todayRachel Andrew
The document discusses using CSS Grid Layout for page layout. It provides examples of how to create a grid with multiple equal columns using grid-template-columns, position elements within the grid using grid-column and grid-row, and make the layout responsive by redefining grid placements in media queries. It also addresses backwards compatibility by providing flexbox fallbacks and using feature queries.
Talk Web Design: Get Ready For CSS Grid LayoutRachel Andrew
- CSS Grid Layout provides a new two-dimensional grid-based layout system for CSS. It allows developers to divide available space on a page into columns and rows, and place elements into those areas.
- The document discusses defining a CSS grid with properties like grid-template-columns, grid-template-rows, and grid-template-areas. It also covers positioning items onto the grid using line-based placement with grid-column, grid-row etc. or named grid areas.
- CSS Grid Layout offers developers greater control over page layout compared to older methods and allows the layout to be redefined responsively with media queries.
What I discovered about layout vis CSS GridRachel Andrew
The document summarizes key concepts the author learned about CSS Grid layout. Some key points include:
- CSS Grid handles box alignment and positioning in a logical way based on writing direction rather than physical positioning.
- The display property controls how elements generate boxes and formatting contexts for child elements. Grid items are always blockified.
- Features like subgrid, display: contents, and logical properties give more control over layout.
- Understanding how CSS Grid handles boxes and positioning provides tools to build flexible and accessible layouts.
Rachel Andrew gives a presentation on modern CSS layout techniques including Flexbox and CSS Grid Layout. She discusses how these techniques allow for flexible and responsive design that separates layout from the semantic structure of the content. Flexbox is well-suited for one-dimensional layouts while Grid Layout enables two-dimensional positioning. Feature queries can help support these new techniques for browsers that do not yet support them.
The document provides an overview and examples of various CSS features, including box alignment, Flexbox, CSS Grid Layout, CSS Shapes, Feature Queries, Initial Letter styling, Writing Modes, and CSS Custom Properties. Codepen examples are included to demonstrate the features discussed. The document covers the purpose and usage of each feature at a high level.
This document introduces CSS Grid Layout and provides examples of how to implement a grid using CSS Grid properties. Key points include:
- CSS Grid Layout allows positioning of elements within a grid system defined entirely through CSS. This avoids layout hacks and redundant markup needed with previous methods.
- Grid properties like grid-template-columns, grid-template-rows define the structure of the grid. grid-column, grid-row position elements within the grid.
- Named lines, grid areas, and media queries allow defining different grid layouts for different screen sizes without changing markup order.
- Repeating tracks, flexible track sizes (fr units), and line spanning provide powerful grid configuration options.
CSS Grid Layout - An Event Apart OrlandoRachel Andrew
My slides from An Event Apart Orlando. Also take a look at the code examples and resources at https://rachelandrew.co.uk/speaking/event/an-event-apart-orlando-special-edition-2016
This document summarizes CSS Grid Layout, a new two-dimensional grid system being added to CSS. It discusses some of the limitations of existing CSS layout methods and how Grid Layout addresses them. Key points include: Grid Layout uses line-based placement to position items, grid tracks can be flexible or fixed widths, areas can be explicitly or implicitly named, and the system avoids hacks and limitations of previous methods.
This document discusses CSS Grid Layout and provides examples of how to define grids and place items on grids. Some key points:
- CSS Grid Layout allows dividing available space into columns and rows to position elements.
- Grids are defined on parent elements using properties like grid-template-columns, grid-template-rows, and grid-template-areas.
- Child elements can be placed on the grid using line-based placement with properties like grid-column and grid-row, or by targeting named lines and areas.
- Grids can be redefined at different breakpoints to create responsive layouts without changing HTML structure.
An Event Apart Nashville: CSS Grid LayoutRachel Andrew
The document summarizes Rachel Andrew's presentation on CSS Grid Layout. Some key points:
- CSS Grid Layout provides a new two-dimensional grid system for CSS layout, addressing limitations of floats and flexbox.
- Grid uses line-based placement, with grid tracks defined by grid-template-columns/rows and items placed using grid-column/row properties.
- Common layouts like Holy Grail can be easily created with Grid. Grid also allows rearranging layouts responsively.
- Grid introduces concepts like implicit and explicit grid lines, fr units, and named grid areas to semantically define layout structures.
An Event Apart Seattle - New CSS Layout Meets the Real WorldRachel Andrew
The document discusses several new CSS layout techniques including the media object, magazine-style layouts, and fancy headers.
[1] The media object pattern is demonstrated using CSS Grid Layout, with an image and text wrapping around it. Flexbox is also used to make the object flexible. [2] Magazine-style multi-column layouts are created with grid areas, minmax rows, and object-fit for images. [3] Fancy headers are made with circles and curved text using border-radius, shape-outside, and flexbox alignment. Feature queries allow fallback styles for older browsers.
This document provides an overview of CSS Grid layout and its properties for creating grid-based page layouts. CSS Grid allows dividing available space into columns and rows, and placing elements into specific areas. Key properties include display: grid;, grid-template-columns/rows to define the grid structure, and grid-column/row to position items. Grid provides a two-dimensional layout system as opposed to the one-dimensional Flexbox, and is well-suited for page-level layouts rather than component-level layouts.
CSS Grid Layout: An Event Apart Boston 2016Rachel Andrew
This document provides an overview and introduction to CSS Grid Layout. It discusses defining a grid with properties like display: grid, grid-template-columns, grid-template-rows, and fr units. It covers placing items on the grid using line numbers, line names, and grid areas. It also demonstrates rearranging the layout at different breakpoints and using implicit rows.
The document summarizes Rachel Andrew's presentation on modern CSS layout techniques including Flexbox and CSS Grid Layout. Some key points include:
- Flexbox and CSS Grid Layout provide improved tools for page layout compared to older methods like floats.
- These techniques separate logical structure from visual presentation, allow responsive design, and give more control over alignment.
- Features like grid-auto-flow can automatically position items but authors must be careful not to compromise accessibility or semantics.
- Flexbox is well-suited for one-dimensional layouts while Grid excels at two-dimensional layouts like pages with columns.
CSS Grid Layout. Implementation status and roadmap (Webkit Contributors Meeti...Igalia
The document discusses CSS Grid Layout, which provides a mechanism for dividing space into rows and columns to define a grid-based layout. It allows precise placement of elements, reflowing optimally for different devices. The document covers grid concepts like lines, tracks, cells and areas. It also describes the syntax for defining track breadths and placing items in the grid. Implementation status is provided, with grid layout already shipped in IE and work ongoing in Blink and WebKit.
The document discusses new CSS layout techniques including Flexbox and CSS Grid Layout. These allow for precise control of alignment both horizontally and vertically, separation of document structure from visual display, and responsive and flexible layouts by default. Examples are provided showing how Flexbox and Grid Layout can be used to create common layout patterns like equal height columns and reordering of content in a responsive way.
This document provides an overview and examples of CSS Grids and Flexbox layout techniques. It discusses how Flexbox allows items to be laid out in a single direction row or column, and how CSS Grids enable two-dimensional page layouts using rows and columns. Examples are given for creating navigation menus, image galleries, and multi-column page designs using these new CSS properties. Media queries are also used to redefine grid layouts at different screen sizes.
Evergreen websites for Evergreen browsersRachel Andrew
Grid is for two-dimensional layout, while flexbox is for one-dimensional layout. Grid allows control of layout from the parent container by defining column and row tracks on the container, rather than adding properties to child items. This allows child items to be positioned and overlap in the grid space without adding widths or heights to them directly. Feature queries can be used to provide an enhanced grid-based layout for supporting browsers while avoiding conflicts with non-supporting browsers.
DevFest Nantes - Start Using CSS Grid Layout todayRachel Andrew
The document discusses using CSS Grid Layout for page layout. It provides examples of how to create a grid with multiple equal columns using grid-template-columns, position elements within the grid using grid-column and grid-row, and make the layout responsive by redefining grid placements in media queries. It also addresses backwards compatibility by providing flexbox fallbacks and using feature queries.
Start Using CSS Grid Layout Today - RuhrJSRachel Andrew
This document provides an introduction and overview of CSS Grid Layout. It explains the differences between Grid and other layout methods like Flexbox. It provides examples of how to implement common layout patterns using Grid and addresses concerns about browser support and fallbacks. Key topics covered include grid template areas, responsive design with Grid, and ways for developers to get involved in advancing browser support for new CSS features.
View Source London: Solving Layout Problems with CSS Grid & FriendsRachel Andrew
This document provides an overview of solving layout problems with CSS Grid and related technologies. It discusses when to use Flexbox versus Grid, how Grid works from the container out compared to other frameworks, tracks sizing with fractions and minmax, nested grids, new sizing keywords, and dealing with older browsers. It also covers subgrids and potential future directions like masonry layouts.
Solving Layout Problems with CSS Grid & Friends - DevFest17Rachel Andrew
This document summarizes Rachel Andrew's presentation on solving layout problems with CSS Grid and friends. It discusses how CSS Grid creates an actual grid structure, unlike float-based or flexbox grids which only mimic a grid. Key features of CSS Grid like grid-template-columns, repeat, minmax, and fr units for column sizing are explained. The document also covers using features like float or flexbox as fallbacks for older browsers, and potential future additions to grid like subgrids and masonry layouts.
Rachel Andrew
Co-founder of Perch CMS
Find more by Rachel Andrew: http://www.slideshare.net/rachelandrew
All Things Open
October 26-27, 2016
Raleigh, North Carolina
Solving Layout Problems With CSS Grid and FriendsFITC
Presented at Web Unleashed 2017. More info at www.fitc.ca/webu
Presented by Rachel Andrew, Perch CMS
Overview
CSS Grid Layout launched into the majority of our browsers in 2017. As designers and developers have started to use Grid Rachel has been answering a lot of questions about the specifications. In this talk she’ll answer some of the common questions about Grid Layout in production – from dealing with old browsers to what might come next in CSS for layout. There will be plenty of practical tips for you to use in your projects today.
Objective
To give attendees practical ways in which they can use new CSS to solve tricky problems
Target Audience
Front-end developers
Assumed Audience Knowledge
Some CSS knowledge
Five Things Audience Members Will Learn
CSS Grid
Flexbox
Box alignment
Feature queries
CSS tips and tricks
This document discusses CSS Grid Layout and how it provides a designed-for-purpose layout system. It describes how grid is defined using CSS properties like display: grid and grid-template-columns. Elements can then be precisely positioned on the grid using line-based placement with properties like grid-column and grid-row. The document provides examples of common layout patterns like the holy grail layout implemented with grid. It also covers topics like implicit and explicit grid lines, named lines and areas, and redefining the grid at different breakpoints.
Solving Layout Problems with CSS Grid & Friends - NordicJSRachel Andrew
I explain some of the common layout problems that CSS Grid and related specifications attempt to solve - while answering some of the common questions I am asked about Grid Layout.
404.ie: Solving Layout Problems with CSS Grid & FriendsRachel Andrew
Rachel Andrew presented on solving layout problems with CSS Grid and friends. CSS Grid allows for two-dimensional page layouts directly in the markup, without needing additional wrapper elements. Grid items can be placed into rows and columns precisely without needing to set widths. Older techniques like floats and flexbox can be used as fallbacks for browsers without Grid support. Subgrids and masonry layouts may be added to Grid in the future. Grid is a native part of CSS with good browser support.
The document summarizes Rachel Andrew's presentation on CSS Grid Layout. Some key points:
- CSS Grid Layout provides a new display value and properties to create grid-based layouts, addressing issues with floats, tables, flexbox.
- Grid uses line-based placement, with grid-template-columns/rows to define the grid, and grid-column/row to position.
- The fr unit distributes space proportionally. Implicit tracks are created when content is placed outside defined lines.
- Grid allows redefining layouts responsively by changing templates with media queries.
This document summarizes Rachel Andrew's presentation on CSS Grid Layout. Some key points:
- CSS Grid Layout provides a new two-dimensional layout system for CSS that solves many of the problems of previous methods like floats and flexbox.
- Grid uses line-based placement, with grid lines that can be explicit or implicit, to position items on the page. Properties like grid-column and grid-row position items within the grid.
- The grid template establishes the structure of rows and columns. Items can span multiple tracks. Fraction units like fr distribute space proportionally.
- Common layouts like Holy Grail are easily achieved with Grid. The structure can also adapt at breakpoints by redefining
The document discusses CSS Grid Layout as a new method for controlling page layout with CSS. It provides examples of using Grid Layout properties like grid-template-columns, grid-template-rows, and grid-column to define a grid structure and position elements within that grid. Key benefits highlighted include describing the layout solely in CSS, ability to redefine the layout at different breakpoints, and eliminating the need for layout hacks or non-semantic markup used by older methods.
Fluent: Making Sense of the New CSS LayoutRachel Andrew
The document discusses the new CSS layout capabilities of Flexbox and CSS Grid Layout. It provides examples of how Flexbox can be used to create responsive and flexible layouts with precise control of alignment both horizontally and vertically. It also shows how CSS Grid Layout allows for true separation of document structure from visual layout, and enables full control over alignment and automatic placement of items. The document argues these new techniques provide a modern system for building layouts in a way that is responsive and flexible by default.
An Event Apart DC - New CSS Layout meets the Real WorldRachel Andrew
The document discusses using CSS Grid Layout and other modern CSS techniques to create magazine-style layouts and interfaces. Some key points:
- The Media Object pattern is demonstrated using CSS Grid Layout, with images and text arranged in columns and rows.
- Flexbox and minmax() are used to create flexible layouts with auto-sizing elements.
- Feature queries allow applying styles conditionally based on browser support for CSS features.
- Techniques like shape-outside and grid areas are used to create magazine-style layouts with images, captions, and floating elements. Fancy headers with circular elements are also demonstrated.
CSS Grid provides a two-dimensional grid system for page layout, allowing elements to be positioned in rows and columns. Some key advantages of CSS Grid include having full control over page layout without needing additional HTML containers, and the ability to easily create complex column-based and row-based layouts. CSS Grid terminology includes grid container, grid items, grid lines, grid cells, tracks and areas. Properties like grid-template-columns, grid-template-rows and grid-area can be used to define the grid structure and position items.
All Day Hey! Unlocking The Power of CSS Grid LayoutRachel Andrew
- The document provides an overview and examples of CSS Grid Layout features such as grid-template-columns, grid-template-rows, grid-gap, grid-column, grid-row, and more.
- It demonstrates how to size grid tracks using fixed, intrinsic, and flexible sizing functions like fr units, minmax(), auto, fit-content(), and others.
- Examples are given for aligning and aligning content within grids using properties like justify-content, align-content, justify-items, align-items and more.
SmashingConf SF: Unlocking the Power of CSS Grid LayoutRachel Andrew
UNLOCKING THE POWER OF CSS GRID LAYOUT
Once you have grasped the basics of CSS Grid, you quickly discover how it enables many existing design patterns in a streamlined, elegant way. However, we shouldn’t see Grid in isolation. Understanding how other parts of CSS work together with Grid is key, in order to get the most out of our new abilities.
In this talk Rachel will be concentrating on a couple of these areas, CSS Box Alignment and CSS Sizing. Rachel will show you practical ways in which a little bit of knowledge in these areas can unlock the full potential of the Grid Specification. You’ll learn how to create useful components and to start thinking of ways in which you can solve design and interface problems in more creative ways.
The document provides a summary of a WordPress Meetup on CSS Grid Layout. It discusses various grid sizing techniques like intrinsic sizing with auto, min-content, max-content, and fit-content. It also covers flexible sizing with fr units and minimum and maximum sizing with minmax(). Other topics include alignment of tracks with align-content and justify-content, alignment of items with align-items and justify-items, and writing modes. Throughout it provides code examples and links to further resources.
The document provides a summary of Rachel Andrew's presentation on CSS layout at Smashing Conf London. It includes links to various CSS specifications and code examples demonstrating different CSS layout techniques like grid sizing, intrinsic sizing, flexible lengths with fr units, minimum and maximum sizing, and responsive design patterns using media queries and feature queries.
Grid layout has now landed in all of the mainstream desktop browsers. It's exciting but how do we start to move to using grid layout, and why should we?
This document discusses the evolving nature of front-end development over time. It notes that in the past, skills like knowing HTML and CSS were highly marketable on their own. However, the field has grown increasingly complex with many new techniques and tools. The document encourages focusing on core fundamentals first before jumping to new tools, and stresses the importance of contributing to standards and open web platforms through techniques like filing issues to improve interoperability.
The document discusses using CSS grid layout to create magazine-style page layouts and fancy headers. It provides examples of creating a flexible "media object" with images and text that can stack on mobile. It also demonstrates making a "half-border box" and positioning elements in a "magazine-style layout" with multiple images and a caption. Finally, it shows how to style a run header with the distance in a circular shape and background image.
The document discusses the origins and development process of CSS specifications. It explains that specs originate from browser vendors, other software companies, and the CSS working group. New specs are developed through a multi-stage process involving drafts, implementations, feedback, and standardization. The community can influence this process by testing experimental implementations, providing feedback, and reporting issues.
Today we have CSS specifications for animation and transitions, complex layout, custom properties and much more. In addition to the breadth of modern CSS specifications, our evergreen, auto-updating browsers sneak in new features with every release.
In this talk, I’ll be taking a look at some of the things that CSS is capable of, some of which you might think you need a JavaScript framework or at least a pre-processor to achieve.
UiPath Community Dubai: Discover Unified AppsUiPathCommunity
This session gives an overview on what are unified apps:
- how one can use this concept to leverage the app development with ease
- how one can have a unified experience of app development and process linking within one integrated platform
- how one can have a unified experience of app development and process linking within one integrated platform
Participants will learn:
- how this approach simplifies workflows & reduces development complexity
- how to ensure seamless process linking across different applications
By leveraging unified apps, organizations can achieve greater efficiency, consistency, and scalability in their app development processes, ultimately fostering a more connected and integrated digital ecosystem.
👩🏫 Speakers:
Lovely Sinha, UiPath MVP, Manager - Automation Center of Excellence, @Dubai Holding
Harika Mudiam, UiPath MVP, Hyper Automation Consultant @FAB
This session streamed live on April 10, 2025, 19:00 GST.
Check out all our upcoming UiPath Community sessions at
👉 https://community.uipath.com/dubai/
SAP Automation with UiPath: Leveraging AI for SAP Automation - Part 8 of 8DianaGray10
Connect directly with the TSP team for live demonstrations and practical exercises on SAP GUI, Fiori, SuccessFactors, and more. You'll also receive exclusive SAP access to practice automation on your own machine. Bring your laptop if you want to do the exercises. Don’t miss this great opportunity to kickstart your SAP automation journey!
Workshop: Mastering Enterprise Agility: From Tension to Transformation by Zia...Agile ME
In a world where change is constant, organisations must rise to the challenge of enterprise agility. This session invites you to confront the tensions that hold your organisation back and transform them into opportunities for growth. In small groups, you'll explore real-world tensions through our specially designed tension cards, identifying the challenges you recognise in your own organisation. With courage and curiosity, you’ll then select a tension to work on and choose from proven organisational design patterns that offer practical solutions. Finally, using Beliminal’s Experiment Canvas, you’ll design a purposeful experiment to take back to your workplace—an actionable step toward unleashing potential and embracing change.
This session is a chance to break through old constraints and unlock what’s possible. With BeLiminal's approach, you’ll navigate the complexities of change and empowered to take bold, confident steps toward true enterprise agility.
MariaDB Berlin Roadshow Slides - 8 April 2025MariaDB plc
With a surge of database solutions, many open-source databases in particular lack battle-tested, enterprise-grade features. Explore MariaDB for an enterprise open source database solution.
Redefining Failure: Creating a Culture Where Setbacks Are Seen as Catalysts f...Agile ME
In this transformative session, we challenge the conventional fear of failure and explore how embracing setbacks can foster innovation, growth, and resilience. Through real-world examples and interactive discussions, participants will uncover strategies to reframe failure as a stepping stone toward success. Key topics include fostering a growth mindset, learning from mistakes, and creating an environment where experimentation is encouraged and setbacks spark creative breakthroughs.
By the end of this session, attendees will leave equipped with actionable insights to inspire their teams, turn challenges into opportunities, and cultivate a culture of continuous improvement and innovation. Ideal for leaders, educators, and change-makers looking to unlock the untapped potential of failure in their professional journeys.
Driving Transportation Forward: Real-World Data SolutionsSafe Software
From managing vast infrastructure networks to ensuring road safety, transportation professionals rely on accurate, up-to-date data to keep operations running smoothly. But how can you streamline workflows, automate reporting, and improve decision-making?
Join us and our customer guest speakers from the transportation industry as they share how automation has transformed their data processes. You’ll see live demos showcasing:
🚌 How CT DOT automates public transit data processing, using FME to connect to GTFS data from 9+ transit providers, transforming and processing bus stop and route data for 13,500+ stops and 1,600+ routes – fully automated with FME Flow.
📙 CALTRANS’ Digital Products Catalog & Civil 3D to DGN Conversion – Explore CALTRANS’ digital catalog, which streamlines transportation data, enhances safety, and eliminates data silos across one of the largest U.S. infrastructure networks. Plus, see how they use FME to convert Civil 3D designs to DGN while preserving data integrity.
🚦WV DOT’s HPMS Submissions and LRS Publication – See how WVDOT automates LRS data validation with FME, ensuring accuracy across 70+ event layers and 38,000 miles of roadway while streamlining QA/QC and improving data integrity.
Whether you’re in transportation planning, asset management, or GIS operations, this session will give you the tools and insights to optimize your workflows and drive better results with FME. See you there!
Workshop: No (Lab) Jacket Required: Designing Experiments for Learning by Mat...Agile ME
Hypothesis-Driven Development is thinking about the development of new ideas, products, and services – even organizational change – as a series of experiments to determine whether an expected outcome will be achieved, so we need to know how to design and run experiments properly.
This session helps participants understand the importance of using experiments to help teams and organizations learn and improve while giving hands-on practice in designing experiments to yield measurable evidence for that learning. We’ll even play a couple of inductive-logic games to get us in the mindset of how to write tests to validate — and invalidate — our hypotheses to acquire knowledge.
Whether you’re in product development or organizational improvement, for those wanting to move from projects to experiments in the quest of continuous learning and evolutionary improvement, this session will provide the tools and mindset for going beyond simply calling something an experiment to conduct experiments with the proper rigor to maximize learning.
This session helps participants:
• understand the importance of using experiments to help teams and organizations learn and improve
• gain hands-on practice in designing experiments to yield measurable evidence for that learning
• understand how to properly measure outcomes without confirmation bias
Webinar - Protecting Your Microsoft 365 DataMSP360
Description
Your organization relies heavily on Microsoft 365 as its’ digital workspace.
However, the use of the cloud has blurred the lines around how your organization’s data is protected. Microsoft provides some data retention capabilities, but whose responsibility is it—Microsoft’s or yours?
Join 4-time Microsoft Cloud and Datacenter MVP Nick Cavalancia on Thursday, April 10th at 11 AM ET, as he explores the best ways to protect your Microsoft 365 data.
Explore the most powerful and widely-used mobile hacking tools in cybersecurity today. This presentation covers top tools like MobSF, Frida, Hopper, Ghidra, Objection, and more—highlighting their core features, use cases, platforms, and practical tips. Whether you're a security researcher, ethical hacker, or mobile app developer, this slide deck offers a well-rounded introduction to both static and dynamic analysis tools for Android and iOS. Ideal for training, awareness, and professional development.
Cross-Cloud Comparison and Security NotesTeri Radichel
This slide deck has a comparison of services across clouds as well as some supplemental materials such as questions you can ask about your cloud security strategy, posture, architecture, and operations.
This particular set of slides is associated with my Azure class but it is applicable to cloud security in general for AWS, Azure, and GCP.
Note that some things have changed since I wrote these slides.
AWS has multiple types of policies now for different use cases: resource cross-account sharing policies (RAM) - which I really hope expands quickly because I find it very useful, declarative policies for resource configurations, service control policies, and so on.
Microsoft keeps renaming things every five minutes. Azure AD is now Entra.
Passwordless is all the rage on Azure and although other clouds have it, I don't think it is the holy grail Microsoft thinks it is. We'll see.
Google has purchased a number of security companies that I think are pretty cool but we'll see how that all shakes out.
Cloud providers are always developing new products and services such as the advent of AI Security solutions. AWS, in particular, has had a strong focus on protecting the data you use in conjunction with AI models to ensure your data is not used by them for training or leaked.
If you find a broken link, that is a strong indication that something has changed! Make sure you consult the latest documentation.
Robert Paul Hardee is motivated to build his career in IT and has hands-on experience in system migrations and hardware installations. He earned Associate’s and Bachelor’s Degrees in Information Technology, followed by Security+ and CEH certifications from the Academy of Computer Education.
Meet, Greet, and Explore Agentic AI with UiPath ScotlandUiPathCommunity
After a long break, we're excited to reconnect and reignite our community. Join us for this engaging 'Meet & Greet' event, where you'll have the opportunity to connect with fellow RPA enthusiasts, industry professionals, and AI innovators.
In this introductory session, we'll delve into the fascinating world of agentic AI, exploring how AI-powered agents are revolutionizing automation by bringing intelligence, autonomy, and decision-making capabilities to RPA workflows.
📕 What to expect:
Networking opportunities with the UiPath Community in Scotland
A clear and engaging introduction to agentic AI
Interactive Q&A session to clarify your questions and ideas
Whether you're an experienced developer, a business leader, or completely new to automation, come along to learn, share, and connect.
Let's innovate together with UiPath Community Scotland!
Speaker/Chapter Leader:
👨🏫Gunashekhar Kotla, UiPath MVP, AI Automation Consultant @EY
This session streamed live on April 10, 2025, 14:00 GMT.
Check out all our upcoming UiPath Community sessions at:
👉 https://community.uipath.com/events/#...
Join UiPath Community Scotland chapter:
👉 https://community.uipath.com/scotland...
Unlocking advanced keyword analysis with machine learning and NLP for SEOsSante J. Achille
Google Search Console is a treasure trove of data that many SEOs underutilise. While paid keyword
research tools have their place, GSC provides the most accurate representation of how users find your
website through organic search. This guide demonstrates how to leverage this often-neglected data using
machine learning and natural language processing techniques to:
• Automatically analyse thousands of search terms.
• Segment them into primary topics and more granular "nuanced topics”.
• Categorise terms in a way that reveals user intent.
• Create actionable editorial guidelines for content creation.
This approach allows for a more sophisticated understanding of your audience's search behaviour,
enabling you to develop highly targeted content strategies based on actual user data rather than third-party
estimates.
Why This Matters for SEOs
Many SEOs lack the data science knowledge and traditional coding skills to perform these tasks.
However, you can implement these advanced techniques regardless of your technical expertise level by
understanding the core principles and leveraging the provided code examples.
With this process, you'll be able to:
• Scale your keyword research beyond manual capacity
• Identify content opportunities others miss
• Create more precisely targeted content
• Measure and improve your content strategy systematically
Read the PDF and learn how to leverage Principle Component Analysis to leverage scale Keyword Analysis using Google Search Console data and how to automate the process with Machine Learning.
Model Context Protocol (MCP): The Future of AI | BluebashBluebash
Discover how the Model Context Protocol (MCP) is revolutionizing AI agents with dynamic memory and context awareness. Bluebash helps you build cutting-edge MCP-powered AI solutions. To learn more, click here: https://www.bluebash.co/blog/game-changing-mcp-ai-protocol/
Join us for the debut of our "Autopilot for Everyone Series", where we dive into the world of AI-powered automation starting with Session 1: "UiPath Autopilot Overview". Explore the fundamentals of implementing autopilots - covering general architecture diagrams, installation, and configuration.
📕 Our session will guide you through:
- Context grounding
- Prebuilt automations designed to enhance efficiency and productivity in your workflows.
- We will conclude with an interactive Q&A session, providing you the opportunity to seek guidance and insights from automation experts.
👉 Register for our next Autopilot for Everyone Series - Session 2 Elevate Your Automation Skills: https://bit.ly/4cD3fYg
This is your chance to get acquainted with the power of the UiPath Business Automation Platform in a welcoming community atmosphere. Don't miss out on sharing your ideas and connecting with fellow automation enthusiasts. Sign up now and be part of the journey to revolutionize your business processes!
This session streamed live on April 15, 2025, 18:00 GST.
Check out our upcoming UiPath Community sessions at https://community.uipath.com/events/.
Agile at the Crossroads: Navigating a Post-Framework World by Matthew PhilipAgile ME
In an era of increasing complexity, Agile frameworks have become rigid constraints rather than adaptive ways of working. This keynote challenges practitioners and leaders to transcend certification-driven methodologies and rediscover the true essence of agility: responding to complexity with human creativity, complexity thinking and genuine value delivery. Looking at real-life examples, we'll dive deep into why some Agile approaches are failing, how big companies are systematically crushing innovation, and what it truly takes to help organizations reimagine agile as a dynamic, generative approach to navigating unpredictable landscapes.
Leadership in the AI Era: The Reinvention of Human-Centered Leadership by Bor...Agile ME
Artificial intelligence is not only transforming business processes but also fundamentally challenging traditional leadership concepts. In this groundbreaking keynote, leadership expert Boris Gloger explores the complex challenges and opportunities that arise for leaders in the context of AI.
Drawing on Gartner’s latest forecasts on the “Augmented Executive” and recent research on AI-supported decision-making, Gloger illuminates the evolving role of leaders. He demonstrates how AI takes over repetitive management tasks, creating space for valuable human-centered leadership.
Simultaneously, Gloger warns against uncritical faith in technology. Building on his insights from Self-Organization Needs Leadership, he argues that in the AI era, human qualities such as empathy, ethical judgment, and the ability to create meaning are indispensable.
Gloger explains how agile leadership principles can synergistically interact with AI systems to create resilient, adaptive organizations. He shows how leaders can design an ecosystem where human creativity and machine efficiency reinforce each other.
Key Topics of the Keynote:
• Realigning leadership roles in AI-driven organizations
• Ethical challenges in using AI for leadership decisions
• Promoting employee engagement and continuous learning in the AI era
• Creating a corporate culture that unites innovation and responsible AI use
• Practical strategies for integrating AI tools into agile leadership approaches
Experience a profound, forward-looking keynote that combines technological understanding with decades of leadership expertise. Gain critical insights to redefine your company and leadership role for the AI era – with a balanced approach that harmoniously unites technological innovation and human-centered leadership.
Transcript: On the rise: Book subjects on the move in the Canadian market - T...BookNet Canada
This webinar explores emerging trends in the types of books Canadians are buying. Using the most up-to-date data, we find out if Romantasy titles are still flying off the shelves at a feverish pace, whether Taylor Swift can sell books as well as she sells concert tickets, and how other sociocultural and demographic shifts are reflected in book-buying behaviour. BookNet Canada’s SalesData & LibraryData team, Lily Dwyer and Kalpna Patel, dig deep into the data to show you which subjects are on the move.
Link to presentation slides and recording: https://bnctechforum.ca/sessions/on-the-rise-book-subjects-on-the-move-in-the-canadian-market/
Presented by BookNet Canada on March 27, 2025, with support from the Department of Canadian Heritage.
This slide is from a Build with AI beginner workshop that was hosted by Google Developer Groups Harare. It takes you through a step by step approach to creating a multiple speaker podcast using Google Cloud and the Gemini API. . It also details how the Gemma models can be used to build different applications and solutions.
3. Rachel Andrew
▸ CSS Working Group Invited Expert
▸ Google Developer Expert
▸ co-founder Perch CMS
▸ Old Nerd.
▸ You can find me in most places as @rachelandrew you can email
me@rachelandrew.co.uk or check out my site at https://rachelandrew.co.uk
4. Start using CSS Grid Layout Today
▸ What is grid & why is it different to flexbox?
▸ How do I get started using grid in production?
▸ What about old browsers?
▸ How can we help encourage browsers to give us cool new stuff?
10. .grid {
display: grid;
grid-gap: 20px;
grid-template-columns: repeat(auto-
fill, minmax(200px, 1fr));
}
Grid minmax() and auto-fill
Creating a flexible number of flexible
tracks, with a little bit of grid spec
magic.
http://codepen.io/rachelandrew/pen/evjdLM
11. If you are adding widths to all your
flex items, you probably need grid.
14. .example2 {
display: flex;
flex-wrap: wrap;
}
.example2 > div {
flex: 1 1 0;
}
.example2 > div.bigger {
flex: 4 1 0;
}
Flexbox
Some things grow larger than other
things.
This is defined using flex properties on
the item.
http://codepen.io/rachelandrew/pen/MpBbwX
17. .example1 {
display: grid;
grid-gap: 20px;
grid-template-columns: 1fr 1fr 1fr;
margin: 20px;
}
Grid
Define column tracks. Items are
constrained by those tracks.
http://codepen.io/rachelandrew/pen/JWBbJP
19. .example2 {
display: grid;
grid-gap: 20px;
grid-template-columns: 2fr 1fr 2fr;
margin: 20px;
}
Grid
To make some tracks larger than
others, we do that when defining the
tracks on the container not on the
item itself.
http://codepen.io/rachelandrew/pen/JWBbJP
24. .container {
display: flex;
}
.box {
flex: 0 0 33.3333%;
}
Flex grid
We add display: flex to the container
however to make a grid out of flex
items we need to use the flex
properties in the items.
27. Grid or Flexbox
… and that’s just the start
‣ Grid allows you to layer items, or for two items to occupy
the same space
‣ Grid allows full control of negative space in your designs
‣ Grid has methods such as the dense packing mode to
backfill gaps in a tight-packed grid
‣ Grid allows you to name lines and areas of your page and
position things against those lines and into the areas.
41. .grid {
display: grid;
grid-gap: 20px;
grid-template-columns:
100px [main-start]
100px 100px 100px [main-end]
100px 100px;
grid-template-rows:
100px [main-start]
100px 100px [main-end] 100px;
}
.item {
grid-area: main;
}
Implicit named areas
Created by having named lines using
an ident with *-start and *-end.
https://codepen.io/rachelandrew/pen/
eWoKmd/
42. https://www.w3.org/TR/css-grid-1/#line-placement
“Note: Named grid areas automatically generate
implicit named lines of this form, so specifying
grid-row-start: foo will choose the start edge of
that named grid area (unless another line named
foo-start was explicitly specified before it).”
47. Grid gives us powerful tools to control
layout via the containing element.
48. Flexbox or Grid?
Use Flexbox when …
‣ Your content is a row OR a column
‣ You want the size of items to dictate their layout
‣ You want to distribute space
49. Flexbox or Grid?
Consider grid when …
‣ You need to control rows and columns
‣ You are adding widths to a flex item in order to make it
line up with rows above.
‣ You want control of the layout from the parent
‣ Items need to occupy the same space or overlap
53. <div class="box-feature">
<img class="box-image" src="http://placehold.it/
900x450" alt="placeholder">
<h2 class="box-feature-title">Featured Item</h2>
<div class="box-content">…</div>
</div>
Feature box
The feature has an image with a
heading and body text overlaid.
54. .box-feature {
display: grid;
grid-gap: 20px;
grid-template-columns: repeat(6, 1fr);
}
Feature box
display: grid turns on grid layout
grid-gap defines gutters between
grid items
grid-template-columns creates
column tracks. In this case creating a
grid with 6 equal columns.
55. The fr unit defines a fraction of the
available space in the grid container
57. .box-feature .box-image {
align-self: stretch;
justify-self: stretch;
grid-column: 1 / -1;
grid-row: 1 / 4;
}
Feature box
The image starts at grid column
line 1 and ends at -1, which is the end
line.
It starts at grid row 1, ending at grid
row 4.
Using box alignment properties to
stretch the image over that area.
58. Grid lines respect writing mode.
Column line 1 is on the left and -1 on
the right in a LTR language.
59. Explicit vs. Implicit Grid
▸ The Explicit Grid is created when you define tracks with grid-template-
columns and grid-template-rows
▸ If you place an item outside of that grid, or auto-placed content requires
further row or column tracks these are added by grid as the Implicit Grid.
61. .box-feature .box-feature-title {
grid-column: 3 / -1;
grid-row: 1;
background-color: rgba(0,0,0,0.7);
color: #fff;
align-self: start;
padding: 20px;
}
.box-feature .box-content {
grid-column: 2 / -1;
grid-row: 2;
background-color: rgba(0,0,0,0.7);
color: #fff;
padding: 20px;
}
Feature box
Positioning the content inside the
area that the image is stretched over.
63. Layering items on the grid
▸ You can position items into the same grid cells
▸ Items further down in the source appear on top of earlier items
▸ Control the stack using z-index
69. .box-title {
grid-column: 1 / 4;
grid-row: 1 / 2;
}
.box-feature {
grid-column: 4 / -1;
grid-row: 1 / 2;
}
The listing
Positioning the title top left and the
feature top right
71. .box-newer {
grid-column: auto / span 4;
}
.box-newer.box-media {
grid-row-end: span 2;
}
Larger boxes
Newer items span 4 column tracks. If
they also have a class of box-media
they span 2 row tracks.
75. .box-title {
grid-column: 1 / -1;
grid-row: 1;
}
@media all and (min-width: 53.125em) {
.box-title {
grid-column: 1 / 6;
grid-row: 1 / 3;
}
}
@media all and (min-width: 75em) {
.box-title {
grid-column: 1 / 4;
grid-row: 1 / 2;
}
}
Going responsive
Inside media queries we can redefine
where items sit on the grid.
76. .box-newer {
grid-column: 1 / -1;
}
@media all and (min-width: 28.125em) {
.box-newer {
grid-column: auto / span 6;
}
}
@media all and (min-width: 53.125em) {
.box-newer {
grid-column: auto / span 4;
}
}
Going responsive
Or redefine how many columns they
span.
79. What about old browsers?
If using display: grid on a container, child items:
‣ Using float, lose their float behaviour
‣ The vertical-align property has no effect
‣ Flex items become grid items
‣ Items set to display: block or inline-block become grid
items
‣ Items set to display: table-cell stop creating anonymous
boxes
84. .listing {
display: flex;
flex-wrap: wrap;
margin: 0 20px;
display: grid;
grid-template-columns: repeat(12,1fr);
grid-gap: 20px;
}
.listing > * {
flex: 1 1 30%;
margin: 0 20px 20px 20px;
}
Adding a flex fallback
Browsers that support display: flex
and not grid will turn the children into
flex, not grid, items.
The flex properties applied to those
items will be ignored by grid layout.
87. .listing > * {
flex: 1 1 30%;
margin: 0 20px 20px 20px;
}
@supports(display: grid) {
.listing > * {
margin: 0;
}
}
Using feature queries
Add a margin for flex layout, remove it
if we are using grid layout.
91. .grid > div {
float: left;
}
.grid {
display: grid;
grid-gap: 10px;
grid-template-columns: repeat(3, auto);
width: 500px;
}
Float and Clear
The float and clear properties have
no effect on a grid item.
https://codepen.io/rachelandrew/pen/YZeqZv
92. .grid > div {
display: inline-block;
}
.grid {
display: grid;
grid-gap: 10px;
grid-template-columns: repeat(3, auto);
width: 500px;
}
display: inline-block
The properties associated with
something being inline-block cease
to apply.
https://codepen.io/rachelandrew/pen/vxdGjQ
93. .grid > div {
display: table-cell;
vertical-align: top;
}
.grid {
border-spacing: 10px;
}
.grid {
display: grid;
grid-gap: 10px;
grid-template-columns: repeat(3, auto);
width: 500px;
}
display: table
Anonymous boxes will not be
generated and the item will become a
grid item.
https://codepen.io/rachelandrew/pen/bqLpQN
94. .grid > div {
display: inline-block;
vertical-align: top;
}
.grid {
display: grid;
grid-gap: 10px;
grid-template-columns: repeat(3, auto);
width: 500px;
}
The vertical-align property
Can be used as a fallback for box
alignment and ceases to apply on grid
items.
https://codepen.io/rachelandrew/pen/vxdGaQ
100. Edge Grid implementation
▸ Currently tied to the IE10 implementation
▸ Prefixed with -ms
▸ No auto-placement or grid-template-areas layout
▸ For simple line-based positioning it works
▸ More at https://rachelandrew.co.uk/archives/2017/04/04/edge-starts-work-
on-their-grid-implementation-update/
101. IE / Edge Tips
▸ Update to Autoprefixer 7 - previous versions would add -ms-grid prefixes. You
don’t generally want this!
▸ Post from Greg Whitworth of Microsoft if you are using Feature Queries and
want to support future Edge: http://gwhitworth.com/blog/2017/05/
accurately-checking-for-css-grid-support-in-microsoft-edge
102. March 2017 March 2017 March 2017 March 2017 March 2017 Soooooon!
112. Get involved with CSS
▸ Comment on or raise new issues against CSS specifications
▸ Raise bugs against browsers
▸ Vote on features where browsers have a platform to do so
▸ Write about new features - it demonstrates we want them
▸ Be nice while doing it. Browser engineers and spec editors work within
constraints just as you do in your projects.
114. Find out more
I made you some resources
Visit Grid by Example for worked examples, patterns with
fallbacks, and a free video tutorial:
gridbyexample.com
I created a huge set of guides for MDN:
https://developer.mozilla.org/en-US/docs/Web/CSS/
CSS_Grid_Layout
Over 4 years of grid thoughts on my site at:
https://rachelandrew.co.uk/archives/tag/cssgrid