About Stacks Guru

Stacks Guru is born from the need to search the vast number of videos out there on stacks built for Stacks Pro and the Stacks 5 plugin for Rapidweaver.

We have scraped over 500 videos to get the transcripts for each in order to make the spoken word searchable.

Please use this free tool to help you learn and discover the awesome power that Stacks and the stacks made for Stacks have to offer.

Stacks Guru

Video Reference

Leave a Tip!

Every little bit helps to keep this going. I'll be doing my very best to keep up with the likes of Joe when it comes all the videos he posts!

The Grid - Foundation for RapidWeaver thumbnail

The Grid - Foundation for RapidWeaver

This video give an overview of how to use do content layout using the column stacks in Foundation for RapidWeaver. For more information check out foundation.joeworkman.net/learn/the-grid/This video give an overview of how to use do content layout using the column stacks in Foundation for RapidWeaver.

Categories: Demo

Transcript

0:06 in this video today
0:07 we're going to be going over the grid
0:10 and this essentially is how foundation
0:14 lays out all of your site's content so
0:17 this is
0:18 an extremely important video and concept
0:21 that you need to know
0:22 in order to grasp the full power of
0:24 foundation and how to use it
0:27 now the grid is essentially the all of
0:30 the column stacks
0:31 and we'll jump into wrap weaver in a
0:32 little bit uh but
0:34 let's go over this webpage uh that is on
0:37 the foundation site
0:38 and we'll kind of see all of everything
0:40 that we're going to go over
0:41 in today's video
0:45 so the basics are essentially your
0:48 website
0:49 is broken up widthwise into 12
0:53 units okay so if we look at this box
0:57 here in this example
0:59 let's say that this box is our content
1:02 area
1:03 within our website and here i have a
1:06 three column stack on the top and a two
1:08 column stack on the bottom
1:10 now normally traditionally you would set
1:12 percentages
1:13 for your column widths however
1:17 that is not how things are done with the
1:19 foundation grid
1:21 because everything is broken up into 12
1:24 units
1:25 you decide how many units that
1:28 particular column
1:29 is going to take up so if you notice
1:32 here
1:32 i currently have a desktop sized browser
1:36 and we have uh this first
1:40 thing is gonna take up six units so as
1:42 you see here it's taking up six
1:44 this second one is gonna take up three
1:46 units and this
1:48 last column is gonna take up three units
1:50 commercial on the bottom we have desktop
1:52 it's gonna take eight on the
1:56 uh the second column is going to take up
1:58 four now if you notice here this
2:00 first column has a mobile setting and a
2:03 tablet setting but no desktop setting
2:06 now because foundation is mobile first
2:09 and uh check out the mobile first video
2:12 that we're going to be doing
2:13 for more info on that but essentially
2:16 what this means is that
2:17 the defaults for foundation are set on
2:19 the mobile side
2:20 and you change them as you go up so if
2:23 we don't have a desktop setting
2:25 the tablet setting is used for the
2:28 desktop browser
2:30 so if we were to resize this browser
2:32 down okay as we see
2:34 let's resize it down i'm going to keep
2:36 going going to keep going
2:38 okay as you see we hit our first break
2:40 point which was i believe
2:42 uh probably the mobile size okay
2:45 um and we notice here that uh on
2:49 this first setting here on this first
2:51 column of the my three column stack
2:55 the first column was set to mobile 12 so
2:58 what that means
2:59 is that uh when we hit the mobile with
3:01 like we just did right now
3:04 the first column is actually going to
3:06 take up all 12 units
3:09 which means the subsequent columns are
3:11 going to go below it
3:13 okay so what that means is if you ever
3:16 total
3:16 up the units for a particular column and
3:19 it's greater than 12
3:21 it will break okay so column one takes
3:24 up 12
3:24 and if we notice here column two and
3:26 column three take up six each
3:29 okay now if we were to make that 12 each
3:32 every
3:32 all three columns would be full width
3:34 okay
3:36 if you notice on the two column here um
3:38 it's now changed so on mobile it's six
3:40 and six okay so
3:44 if go ahead and read through this a
3:46 little bit um
3:47 if you want to take the time to really
3:48 learn it um you know it is
3:50 a little bit of math basically
3:51 everything adds up to 12.
3:53 uh i think that's pretty simple now the
3:56 next concept we're going to review
3:57 is the idea of offsets and what this
4:00 means is you can actually move and shift
4:04 your content
4:04 over a particular number of units so
4:08 uh here i have four different content
4:10 boxes
4:12 this first one is set to be a width of
4:14 12
4:15 or 10 units right and then i've shifted
4:18 it or
4:18 i've offset that constant that content
4:21 by two units
4:24 so essentially um if if i hadn't set any
4:27 offsets at all
4:29 it would uh be basically it would start
4:31 here on the far
4:32 left and it would go all the way up to
4:34 10 okay but since i've offset it by two
4:37 it then shifts that that content over by
4:40 two units now in this particular
4:43 instance if i were to shift the content
4:45 or offset it by one unit
4:47 the content would actually be centered
4:49 within my browser
4:51 right so that's one way now we'll go
4:53 over some more centering options later
4:55 on
4:55 but that's one way of potentially
4:57 centering your content making sure it's
4:59 it's not full width you want to shrink
5:00 it down a little bit
5:02 and then center it okay or offset it by
5:04 a certain number of columns
5:06 equalize height is another great feature
5:08 that is a feature within all of the
5:10 foundation column stacks
5:12 and what this does is it allows you to
5:14 no matter the content of your columns
5:16 you can have that content be the same
5:18 exact height
5:19 so here i have three panel stacks um
5:22 inside of a three column stack
5:24 um and basically i've set i've turned on
5:27 equal as height
5:28 so no matter the content that's within
5:30 it those
5:31 panels are the exact same height
5:34 now the content that you add into
5:38 the foundation column stacks must
5:39 support this feature
5:41 right now the only things that do
5:43 support that are the pricing tables
5:46 the panel stack and then the jack stack
5:49 which is not a part of the foundation
5:51 suite
5:52 but it is a part of uh it is a stack
5:54 that i sell
5:55 that is also listed on the third party
5:57 add-on pages so uh
5:58 jack if you're if you have jack are you
6:01 familiar with it it's a very powerful
6:02 tool
6:03 um and that equalized height setting
6:06 was added as a feature directly into
6:09 jack the next is centering
6:11 and essentially all of the centering is
6:14 accomplished using the foundation one
6:15 column stack
6:17 and we'll go over that in a little bit
6:19 and we'll show you a perfect example
6:21 but it is good to know that you can
6:23 center any content that you'd like
6:26 uh and it can all be done with the
6:27 foundation one column stack
6:30 now source ordering is basically offsets
6:33 on steroids and it allows you to not
6:36 only
6:37 move content to the left but you can
6:39 move it to the right
6:40 now um we're not going to be covering
6:42 source ordering in this video um
6:44 it's a little advanced but essentially
6:46 this source ordering is powerful it
6:48 allows you to really change the order of
6:50 your columns between
6:52 breakpoints let me show you an example
6:55 if we look at these bottom two columns
7:01 uh the order here um on the this
7:04 this one we have the light gray and the
7:06 dark gray and then we have the light
7:07 gray and the dark grey on desktop
7:09 okay yet when we shrink that down to a
7:12 mobile browser
7:13 we'll notice one thing on this first set
7:16 of
7:17 two column stacks the
7:20 second column is below the first column
7:23 and that's normally what you would like
7:25 however there are times where you might
7:27 want the
7:28 column two to be above column one
7:32 and that is completely possible using
7:34 source ordering with foundation
7:36 this is where a lot of the power comes
7:38 in in terms of allowing you to define
7:40 exactly where your content is going to
7:42 be
7:43 for a particular device because in the
7:46 second set we have
7:48 column two is above column one
7:51 and lastly we're going to go over some
7:52 edge to edge and show you how to get
7:54 that content
7:54 outside of your defined site max with
7:58 and take your content to the full width
8:00 of the browser window
8:02 so here i've set up a really simple
8:04 example for us to play around with
8:06 and play with the foundation columns now
8:09 luckily
8:09 all of the column stacks are identical
8:11 in terms of the settings
8:13 it's just the number of columns that
8:14 you're tweaking the number with
8:16 so we're going to use a three column
8:18 stack
8:19 in this example now we're going to just
8:22 cycle through all of the options here
8:24 there aren't too many
8:26 first there is a preview grid option and
8:29 this is really cool this is going to
8:30 really help you visualize
8:32 where your columns are if you turn that
8:34 on what you'll notice is
8:36 inside edit mode you'll see that same
8:39 grid that i
8:40 i was using inside my
8:43 website so you can actually see the
8:45 number of columns
8:47 uh so we see we have white blue white
8:49 blue and each of those columns in the
8:51 background
8:52 is the number is the unit uh that is
8:54 going to be determined
8:56 for the width of your your columns
9:00 and we'll leave that on for right now
9:02 the next is collapse columns
9:04 and what this setting does is it removes
9:06 all the padding
9:08 between each column so if we turn that
9:10 off and do a quick preview
9:13 we'll notice that we have gaps in
9:15 between each of our columns
9:17 right we have a gutter however if we
9:22 were to
9:22 uh turn that off so if we go here and
9:25 then turn
9:26 collapse columns on sorry
9:30 and then preview we'll notice that the
9:32 the gaps between them
9:33 are removed okay so there's gonna be no
9:36 gap
9:36 between them now the next option is
9:38 equalize heights and we'll go over that
9:40 in just a little bit
9:42 the next is responsive sizing and these
9:45 features
9:46 allow you to define the gap at the top
9:49 the bottom and basically the gutter
9:53 when the columns break okay
9:57 so what do i mean by that so top space
10:00 is current is the space from the
10:02 basically
10:03 it's basically your top margin for all
10:05 three columns
10:06 okay the gutter if we add this say
10:10 one okay um this
10:14 is the space from that is added to the
10:17 top of each column
10:19 now how is that different than the top
10:22 space
10:23 the top space is the amount of space
10:25 that covers the entire top of the three
10:28 okay the gutter is individual space
10:30 that's on top of each one
10:32 now why is that important for
10:34 illustration let me turn off tablet
10:35 sizing
10:37 and you'll notice that um if i were to
10:39 set the gutter to zero
10:41 okay the columns get closer to each
10:44 other okay
10:59 rems okay and this is a relative
11:02 m which is essentially um
11:05 sort of like an m but it's relative to
11:08 the root element
11:09 on most browsers that means 16 so
11:12 3 times 16 is going to be
11:16 48 okay
11:20 and then 5 times 16 is whatever that's
11:22 what that space is going to be
11:24 so you can kind of get do a guesstimate
11:26 on what that is and the reason these are
11:28 important is because uh it'll actually
11:30 expand and contract
11:32 uh on devices so it's it's a really
11:34 great unit for responsive design
11:38 but getting back to this the top space
11:40 is
11:41 here right from the label to this
11:44 background grid
11:45 and then we have our gutter which is the
11:48 from
11:49 you know the top of our our space here
11:51 to the top of the panel
11:53 from the bottom of this panel to the top
11:55 of that panel from
11:56 the bottom of this panel to the top of
11:58 that panel so the gutter is important if
12:00 you want to have
12:01 spacing between your columns when they
12:04 break
12:05 okay and then the i'm going to turn on
12:07 back on tablet sizing
12:09 and then the bottom space is simply the
12:11 space at the bottom
12:13 of all three columns so if we set that
12:16 to three
12:16 we'll have a nice uh you know space
12:19 between let's say we
12:20 wanted another three column stack below
12:22 here so that's how we define
12:23 spacing for all of our columns now let's
12:26 jump into the meat
12:27 here and that's sizing now if we notice
12:30 earlier i turned off tablet sizing
12:32 and that's kind of cool because right
12:34 now we turn off tablet sizing
12:36 and we notice that what is defined on
12:38 the mobile level
12:39 is now inherited all the way up to the
12:41 desktop level
12:43 and i can change that as you see here we
12:45 have mobile sizing set up
12:46 i have column one column two and column
12:49 three
12:50 and i can just simply adjust these to be
12:52 whatever i want
12:54 so i have six and then if i were to
12:56 change this to
12:58 now watch once i get down to six bam
13:01 right i now have six and six
13:04 since the total of those is less than 12
13:08 both of those two columns will show up
13:10 on the same row
13:12 as soon as the addition or the math is
13:15 greater than 12
13:16 it breaks and it will go on to a new row
13:19 of its own
13:21 so that shows you an example of how
13:23 these columns work
13:25 and what's great is you can see this all
13:27 live happening directly inside edit mode
13:29 you don't need to preview anything as
13:31 you resize your columns
13:33 you will see things uh you know resize
13:36 i'm going to turn off this preview grid
13:38 as i as i resize this this one
13:41 let's say i want 12 and i want 12 and
13:44 i want 12. and you go that's what i want
13:46 to be
13:47 in mobile i want it to be like that then
13:50 you can move on to dust onto tablet
13:52 sizing
13:53 now in tablet sizing for a three column
13:56 stack chances are tablet sizing
13:58 four four and four would would work well
14:01 uh because that
14:02 uh will allow everything to still remain
14:05 inside one row
14:07 yet uh you know still it's wide enough
14:10 to kind of show your content but
14:12 if your content is isn't uh maybe you
14:15 want to do you know
14:16 seven and seven and four i don't know
14:20 right i'm just kind of guessing here i
14:22 just want to throw out something
14:23 different because then
14:24 when we go to desktop you can then
14:26 change even further
14:29 and then you know so you can have three
14:31 different sizing
14:32 units here you can have mobile sizing
14:35 tablet sizing and desktop sizing
14:39 and it inherits up so if you turn
14:42 off desktop the tablet sizing is going
14:45 to be used
14:46 on the desktop what's with this
14:48 alignment okay
14:49 so for each column you can set an offset
14:53 or source order and we kind of went over
14:56 those earlier
14:57 where you can actually move and shift
15:01 your columns around
15:03 okay so i'm going to turn off tablet
15:05 sizing again so we can kind of see this
15:07 in action
15:08 so i'm going to reduce column one down
15:10 to six
15:11 columns or six units and then i'm gonna
15:14 i'm gonna define an offset and then i'm
15:16 gonna offset
15:17 that by three
15:20 okay as you see right now i have a
15:24 column that is six units wide if we
15:27 wanted to turn on preview grid
15:28 we'll notice that is one two three four
15:31 five
15:32 six columns wide and it is offset
15:35 by three units because i've i've shifted
15:38 it over to the right
15:39 by three and you can do this with
15:42 everything right so i can then go ahead
15:44 and change my
15:45 my column two and offs that offset that
15:48 if i'd like
15:49 right the same thing and
15:53 not only are the sizing uh inherited
15:56 but so is the alignment
16:00 so if i turn on tablet sizing here if
16:02 you'll notice here
16:04 uh my alignment is set to inherit
16:08 now if i want i can change that and do
16:10 offset zero
16:11 and then kind of reset everything right
16:15 so let's say i want to have it offset on
16:17 mobile but not offset
16:19 on tablet you simply set on the tablet
16:23 to offset
16:24 and you set that to zero and you now as
16:27 you notice here
16:28 my column two now moves over uh to the
16:31 same row
16:32 as column one because the we no longer
16:34 have an offset that's going to
16:36 cause it to break that is the crux and
16:38 the power
16:39 of foundation columns you can have
16:43 sizing alignment it all inherits from
16:45 mobile
16:46 up to desktop and you can override those
16:49 settings or inherit them
16:51 from again mobile all the way up to
16:53 desktop it's very powerful
16:56 okay so if you want to use the equalize
16:57 heights option it is really easy to set
17:00 up
17:01 essentially inside your column stack
17:03 your foundation column stack
17:05 you have to check the equalize heights
17:06 setting now there's a little bit more
17:09 that you need to do
17:10 you actually need to go to each content
17:13 column so in this instance we have a
17:15 panel stack
17:16 and you have to check the equalize
17:18 height setting there as well
17:20 so you need to go to each one and check
17:21 that
17:23 the reason this is the reason why uh
17:25 specific content stacks need to support
17:28 the equalize height
17:29 options because there needs to be a
17:30 setting so again right now that exists
17:33 the panel stack
17:34 the pricing table stack the jack stack
17:37 which is not inside foundation
17:39 and hopefully in the future we'll have
17:40 even more stacks that support this
17:43 great equalize height option but that's
17:45 all you need to do
17:46 as once you set the equalize height
17:49 option in each of your panel stacks
17:51 as well as your column stack you should
17:53 be golden
17:54 uh it's really a piece of cake now let's
17:57 jump
17:57 into the power of the one column stack
18:01 and a lot of people think of why why
18:03 would i need a one column stack well
18:05 let's show you how it differs from the
18:07 normal other column stacks since it is
18:10 just
18:10 one column it's just a kind of invisible
18:13 box right
18:14 that contains things so we still have
18:17 the same thing we still have preview
18:19 grid and collapse columns
18:21 the defining sizing is a little bit
18:24 different you have checkbox to define
18:26 desktop and tablet sizing and you have
18:28 your mobile tablet and desktop sizing
18:30 here at the bottom
18:31 now you also notice that there is a max
18:33 width option and this allows you to
18:35 define a max width of the content that
18:37 you're going to add to it
18:40 now i added this to help people
18:42 transition
18:43 however i i play that you actually try
18:46 not to use max with and please learn how
18:48 to use the grid
18:49 because in a majority of the cases you
18:52 actually don't need a max width option
18:55 in maybe five percent of the cases i can
18:58 actually see that being useful
19:00 however by utilizing the grid system
19:03 chances are you can get exactly what you
19:05 want without
19:06 setting this map miss max with option
19:10 okay so just like any others you can set
19:13 um
19:13 mobile defaults so you can say i want
19:15 mobile to be seven units
19:17 tablet to be six units and desktop to be
19:19 three units if you want
19:21 whatever right and then all of course
19:24 all of those inherit
19:25 up if you don't have desktop sizing
19:27 it'll hear it from tablet if you don't
19:29 have desktop or tablet it'll inherit
19:31 from mobile
19:31 but that's not too exciting what else
19:33 can i do with the one column stack a one
19:35 column stack
19:36 uh has some more alignment options that
19:38 the other ones don't
19:39 and essentially that is sent being
19:41 centered and uncentered
19:43 so what we could do is let's say i want
19:45 my these three columns
19:47 um to be perfectly centered within uh my
19:51 browser window and so essentially
19:54 let's say i want to use a one column
19:56 stack and
19:58 here let's just keep this simple
20:01 um i'm going to set it to be
20:05 six uh well we'll do eight units
20:08 okay um because that's the kind of width
20:10 i want my three columns to be
20:12 but then i want them centered so i set
20:16 the alignment to be centered
20:18 and the content for those eight columns
20:21 are going to be centered
20:22 now you might think well i could just do
20:24 that with offsets
20:26 yes but what if you kind of have like an
20:28 off
20:29 an odd number um let's say you have
20:32 um nine okay
20:35 um because nine uh you have three units
20:39 on each side
20:40 or you know how can you center you can't
20:42 really center
20:43 content when it is nine units wide
20:46 using offsets okay so this is where the
20:50 one column stack is powerful
20:52 um at this point i have a three column
20:54 stack
20:55 that takes up nine units
20:58 and then inside that three column stack
21:01 we still have the same thing right
21:03 now how does that work my one column
21:05 stack is broken up into
21:07 12 units and as we see here i'll preview
21:10 that
21:11 but then my three column is that broken
21:14 up into 12 units as well
21:15 yes so if i turn on this
21:18 now this kind of this might be a little
21:20 confusing to look at here but if you
21:22 notice i have a larger grid
21:24 in the background for my one column and
21:26 then inside my three column i still have
21:29 a 12 unit
21:30 grid it's just smaller so
21:33 foundation every single column will take
21:35 up 12 units no matter
21:37 its total width okay
21:41 so this means that you have no problems
21:43 nesting column stacks within each other
21:47 now granted having multiple previews on
21:50 like this
21:50 could be a little bit confusing so you
21:52 might want to only have one
21:53 or multiple on at a time or not have
21:56 multiple on at a time
21:58 okay so edged edge content how do we do
22:01 it
22:02 what is the mythical force that allows
22:04 us to do this
22:05 well it could not be simpler
22:09 now in order to do this i just want to
22:12 explain
22:13 one thing that i've kind of not
22:15 mentioned
22:17 inside site styles we set a max
22:20 bat a max width for our website and what
22:23 that here is
22:24 1000 pixels so what that means is
22:28 if we preview our site the content will
22:31 never exceed
22:32 1000 pixels what actually
22:35 makes that content obey that setting
22:38 is the foundation column stacks
22:42 so it is the actual column stacks that
22:45 restrict the width
22:46 of its content to be a maximum of 1000
22:50 pixels or whatever you have it set with
22:52 insight styles
22:54 so the key to make something to break
22:57 outside of that max width setting
23:00 is simply not to add it inside of a
23:02 foundation one column stack
23:04 to show you how easy that is let's um
23:07 move this
23:08 image so as you see here when we
23:10 previewed um the content in the image
23:12 both lined up and they wouldn't grow
23:15 past
23:16 this is actually 1000 pixels wide
23:19 okay and we have a small buffer around
23:21 the outside
23:23 but if we were to add this one
23:26 image outside of the foundation column
23:30 stack
23:31 so right now it is outside of any sort
23:34 of foundation column stack
23:35 now we're using an image in this example
23:38 but it could be anything it could be a
23:39 slideshow
23:40 it could be um a jack stack that shows a
23:44 cool background color like i have on my
23:46 foundation website
23:47 all of that bleeds through so let's go
23:49 ahead and preview that
23:51 and what we'll notice here in quick
23:52 preview is that the image now goes the
23:55 entire width of my browser window
23:58 now if you want to see that in action in
24:00 a web browser let's have a look
24:02 so just in case you didn't trust my
24:04 quick preview mode
24:06 this is the exact page inside safari
24:09 and what we notice is my content break
24:11 you know it does not
24:12 exceed the max width of a thousand
24:14 pixels because
24:16 the foundation column stacks respect
24:17 that however this image is not within
24:20 the foundation
24:21 column stack so it takes up the entire
24:24 width of the browser
24:28 it is as simple as that and that does it
24:31 for the grid everybody i hope you really
24:33 learned something
24:34 now something that i want to make sure
24:36 that you know is this grid page
24:39 is really fantastic not only
24:42 is it because i've taken the time to
24:45 write everything out and explain
24:46 everything
24:47 but all of these great examples that
24:49 you've seen here
24:50 are available inside the foundation demo
24:53 project
24:54 so make sure that you check out the
24:56 foundation project and go ahead and
24:58 start playing with these now you can
25:00 either play with it here or create a
25:02 demo project and start playing with the
25:04 grids
25:04 and the columns and seeing how the
25:06 offsets work and how source order works
25:09 now in terms of source order the
25:11 examples that are inside the demo
25:12 project
25:13 are fantastic they're real world live
25:16 examples that you can copy and paste
25:18 into your existing projects
25:20 and tweak to your desire right
25:23 so look at these play with them really
25:25 experience is
25:26 key with i think with anything so the
25:29 more that you play with the grid
25:30 i bet you within minutes you're it's
25:34 going to click with you
25:35 and you'll be off to the races making
25:38 beautiful
25:38 fabulous websites so thank you very much
25:41 everybody
25:42 i hope that you uh enjoyed this i hope
25:44 you learned something
25:45 and i hope you love foundation so go
25:47 forth and make your websites great
25:49 thanks everybody bye
26:04 you"}]
0