Clicky

Intrinsic: Building a Responsive Layout
menu Menu

rjhweb design

rjhweb design

fast, flexible fair

Ninja News

RapidWeaver News & Reviews

Intrinsic: Building a Responsive Layout

You just purchased Intrinsic from S4S and are going to build a killer layout!
But wait, that looks a lot more complicated than you thought it would!

I assure you it isn’t; Here’s a layout that I put together quickly to demonstrate how Intrinsic works…

We’re building for the modern web – right? So what did we learn just last week?
Mobile First!

Let’s build a project together…
Drag an Intrinsic stack into your stacks page and begin filling it with content.

In my project, I have a header stack — an image with a title and a menu bar. I added the image as a background image to a Sections Pro stack and the title in a Sections Box. The menu is below the sections box and I dropped the lot into an Intrinsic Grid Item. Problem number one!
 The Intrinsic stack already has a background colour defined. Two backgrounds won’t work. If you wish to see your Section, you’ll need to deactivate Intrinsic’s BG in the main stack!

Once that’s done, you’ll notice that Intrinsic also has 0.75rem padding on all sides. We want our banner image to be full width, so the padding will have to go!

Next up, in a Grid Item that I’ve given the ID h1, I’ve added a Grummage stack with a Header stack, and a 2 column Grummage containing paragraph stacks.
The Grummage stack reduces our Intrinsic content to the site width defined in the Foundation setup.

I’ve then added the following Grid Items and filled them : for paragraphs one to four with the IDs p1 — p4. For images i1 — i4. In the I Grid items I’ve added a text stack for the caption — set to align at the bottom of the Item and I’ve added a background image via the Fill Style dropdown.

Now comes the Grid Item for your footer.

The preview will still look chaotic because we haven’t added a layout yet!

In Grid Template areas, we now need to add the following:
'header'
'h1'
'p1'
'p2'
'p3'
'i1'
'i2'
'p4'
'i3'
'i4'
'footer'
If you now preview, you’ll see that the mobile layout is almost finished. There’s just a tiny problem with the height of the images.
The problem arises because we haven’t given the rows a height. That’s fine for the text content – ‘auto’ works just fine, however it doesn’t work for the image items which only contain a caption with a BG [image], but the BG height hasn't been defined..
This means that we now have to set the size for each of the rows in our layout. 
The first five rows work just fine with auto, so we can add “auto auto auto auto auto “ to set the height. Make sure there is a space between each one.
We want our images to have a min height of 300px on mobile. The max height can be set to “auto”, so now we add FOUR instances of “minmax(300px,auto)”.
Once again – don’t forget the space between each ‘row’.
 Now add “auto” (with spaces) between the first two images rows for the headline ‘p4’ and once again at the end for the footer.
And Voila! We have a simple Mobile layout!

Our content is all in place, so all we need to do now is add a layout description for screens larger than 640px or 768 px (up to you). 
We want the images spaced around the header ‘p4’, so In suggest you grab a piece of paper and draw the following:

Intrinscic – Stacks4Stacks – scheme

This shows you your layout scheme…
So now we can begin work. Our layout has three columns.
The Header and the Grummage with the two columns should fill the layout width, so for them we add:
‘header header header’
‘h1 h1 h1’
This tells Intrinsic that the two Grid items span all three columns.
Now we add a new line:

‘p1 p2 p3’
to place those three items in the same row.
For our four images and header, we just worked out on paper that we need :
'i1 i1 i2'
'i3 p4 i2'
'i3 i4 i4'
And to complete the layout we need:
‘footer footer footer’
Don’t forget any of the spaces OR the single quotes, or you layout won’t work!
Once again we need to format the row height to accommodate the images.
This time we have fewer rows because p1,2 and 3 are displayed on the same row.
The images can be larger to, so this time we remove the ‘auto from the Grid Row Height and add:
auto auto auto minmax(400px,auto) minmax(400px,auto) minmax(400px,auto) minmax(400px,auto) auto
Your desktop layout is now more or less complete. If you go through the Grid Items one by one, you can now add background colours, add, or remove padding and take a look at the options in general – there are many, but now, at least we have a responsive layout.

And now you've come this far, you can define a layout for a third breakpoint.
Quickly sketch out on paper just how you'd like it! Have fun!

BTW – If you visit this page with what you’ve just learned, you’ll find a few more helpful tips.
I know, if you suffer from code phobia like me, it looks scary, but I assure you — after the work you just did, it isn’t!

Please note that DISQUS operates the forum below.
When you sign in to comment, RWNinja will provide your email, first and last names to DISQUS. That information, along with your comments, will be governed by DISQUS’ privacy policy. By commenting, you are accepting the DISQUS terms of service.
blog comments powered by Disqus
  • Stacks Image 35399
  • Stacks Image 35402
  • Stacks Image 35405
  • Stacks Image 35408
  • Stacks Image 35411
  • Stacks Image 35414
  • Stacks Image 35417
  • Stacks Image 35420
  • Stacks Image 35423
  • Stacks Image 35426
  • Stacks Image 35429
  • Stacks Image 35432
  • Stacks Image 35435
  • Stacks Image 35438
  • Stacks Image 35441
  • Stacks Image 35444
  • Stacks Image 35447
  • Stacks Image 35450
  • Stacks Image 35453
  • Stacks Image 35456
  • Stacks Image 35459
  • Stacks Image 35462
  • Stacks Image 35465
  • Stacks Image 35468
  • Stacks Image 35471
  • weaverthemes
  • Stacks Image 35477
  • Stacks Image 35480
  • Stacks Image 35483

Links to the developers ® All trademarks cited on this page are the property of their respective owners.

x

Don’t miss a post!
Sign up for our monthly newsletter.

A monthly digest of all the latest updates from our RapidWeaver blog, keeping you up to date with the hottest new stacks and themes.

* indicates required

Contact Information

My Image

rjh web design

265 Moo 2
Mae Na Toeng Nai, Pai
Mae Hong Son
Thailand 58130

About Us

We design websites and print-products for small businesses at reasonable prices. We specialise in Responsive Web Design.

Legal

This site uses Cookies to determine the best method of display in combination with your browser.
We do not harvest or sell personal information.
© rjh web design 2010—16

This website was built with loving care on a Mac using Foundation. For more information, contact me.