From the course: Learning Foundation 6
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Block grids - Foundation Tutorial
From the course: Learning Foundation 6
Block grids
- [Instructor] The block grid is slightly different than the XY grid. In this case, let's say we have a stack of images like this that are coming from a server. We don't know how many images we're going to have, but we need to lay them out neatly on the web page. That could also of course work with a number of cards of content, with a header and an image, and maybe a little blurb of text and a Read More link. Maybe a series of those, or other types of containers that we need to lay out in a nice grid on the page. But again, we don't know how many of them there will be, or how many columns and rows we might need to have. What the block grid will do is place a series of these items, in this case, images, into rows and grids, and the number of items in each row can change with the size of the screen. So this document is blockgrid.html. It's inside of your exercise files for this particular video. Go ahead and copy that into your working folder. You're also going to need to copy over an…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Identify Foundation's three grid systems3m 4s
-
Basic setup of the XY Grid7m 14s
-
Margins and padding with XY Grid4m 27s
-
Margin or padding collapse2m 48s
-
Auto-sized grid cells4m 7s
-
Source ordering5m 44s
-
Block grids3m 36s
-
Vertical grids4m 5s
-
Challenge: Create a grid1m 28s
-
Solution: Create a grid2m 33s
-
-
-
-
-