Adjusting the Layout for Tablets & Mobile Phones

Free Sketch Tutorial

This exercise is excerpted from Noble Desktop’s past web design training materials and is compatible with Sketch updates through 2021. Noble Desktop now teaches Figma as the primary tool for web and UX & UI design. To learn current skills in web design, check out our Figma Bootcamp and graphic design classes in NYC and live online.

Note: These materials are provided to give prospective students a sense of how we structure our class exercises and supplementary materials. During the course, you will get access to the accompanying class files, live instructor demonstrations, and hands-on instruction.

Topics covered in this Sketch tutorial:

Designing with Bootstrap’s grid, Adapting the design for tablets, Adapting the design for mobile phones

Exercise Preview

preview adapting for tablet and phone

Exercise Overview

In this exercise, you’ll learn how to modify a desktop-sized design for smaller screens, such as tablets and mobile phones.

Comparing Bootstrap’s Desktop, Tablet, & Mobile Grids

In the previous exercise, we used a pre-made Bootstrap template to lay out a desktop design. Let’s take a look at the tablet and mobile phone grids so we can compare them to the current desktop design.

  1. In Sketch, close any files you have open.
  2. In Sketch, go to File > Open Local Document.
  3. Navigate into Desktop > Class Files > Sketch Class > NYC and double–click on About Page - Ready for Tablet & Mobile.sketch to open it.

    NOTE: This file should look just like the one you’ve been working on in the previous exercise. We’re using this file just in case you played around with your design and did something different.

  4. Compare the Desktop and Tablet artboards. If you can’t see both of these layouts, hold Spacebar and drag to pan around the file.
  5. Notice that the columns are narrower in the tablet size, but the gutters (space between columns) are the same width.

    NOTE: The Tablet artboard is designed for a screen size of 768px or larger. The content container is 720px wide.

  6. Compare the Tablet and Phone artboards. Whoa, pretty different! Multiple columns typically don’t fit onto small screens. Most things on the phone will be one column, although we’ve included two column guides which can sometimes be useful.

    NOTE: Bootstrap’s grid for mobile phones is for extra small devices that are less than 576px. This Phone artboard is 320px wide, the width of an iPhone SE.

Adapting the Design for Tablets

The sidebar spans 3 columns on the desktop, but that’s a bit small for the tablet layout. Grid systems don’t require elements to span the same amount of columns across screen sizes. So on the tablet we’ll make the sidebar span 4 columns.

  1. Let’s copy over the elements from the Desktop artboard. To see both artboards:

    • In the Sidebar on the left, click on Tablet.
    • In the Sidebar, Shift–click on Desktop.
    • Go to View > Zoom To > Selection. You should only see the two artboards.
  2. Click on a blank area of the canvas to deselect both artboards.
  3. As shown below, on the Desktop artboard drag a selection box over the sidebar text and background color by starting a drag outside the elements, and dragging until the selection box touches the background and text:

    nyc sidebar drag selection

    NOTE: At any point during this exercise, feel free to zoom in or out as needed using Cmd–Plus(+) or Cmd–Minus(-).

  4. Hit Cmd–C to copy the two elements.
  5. In the Sidebar, click on the Tablet artboard to select it.
  6. Hit Cmd–V to paste. It will be pasted in the center of the artboard.
  7. Hit Cmd–0 (View > Zoom To > Actual Size) to see the design at actual size.
  8. We need to see the red guides that mark the midpoint between the columns. If you don’t see the ruler guides, hit Ctrl–R (View > Canvas > Show Rulers).
  9. If you don’t see the shaded column guides, hit Ctrl–L (View > Canvas > Show Layout) to show them.
  10. As shown below, align the sidebar’s right edge with the rightmost red guide. The top position is up to you, but refer to the image as a guide.

    nyc position tablet sidebar

  11. Click on a blank area of the canvas to deselect.
  12. Let’s resize the background. Reselect only the sidebar bg.
  13. As shown below, drag the background color’s left-middle handle inward until it snaps to the 5th from right red guide:

    nyc tablet sidebar resize bg

  14. Click on the sidebar’s text to select it.
  15. Grab the text box’s bottom-left handle and bring that in (and down) until it snaps to the column within the background color (and reveals all the text at the bottom). Don’t worry about the background color being too short. We’ll fix that soon.

    nyc tablet sidebar text box

  16. If you can’t see the Desktop artboard, scroll to it by holding Spacebar and dragging. If you have a trackpad, you can also use a 2-finger drag to scroll.
  17. On the Desktop artboard, drag a selection over the white background and its text so both elements are selected.
  18. Hit Cmd–C to copy them.
  19. To paste the items onto the Tablet artboard:

    • Scroll over to the Tablet artboard if needed.
    • Select one of the sidebar elements on the Tablet artboard, or click on the word Tablet above the artboard (or in the Sidebar).
    • Hit Cmd–V to paste.

    Now you can really see how much smaller the Tablet artboard is.

  20. As shown below, align the left edge with the 1st red guide. You will see a horizontal red guide at the top when you are aligned with the top of the sidebar hiding in back.

    nyc position main col sidebar

  21. Click in an empty area of the canvas to deselect the elements.
  22. Click on the main column’s white background to select it.
  23. Pull the background’s right-middle handle inward until it snaps to the edge of the sidebar’s background (at the 5th red guide from the right).
  24. Select the main column’s text box.
  25. Drag the text box’s right-middle handle in until it snaps to the rightmost column in the white background area (the 8th column) so you end up with a layout like this:

    nyc tablet resize main col

  26. On the Tablet artboard, the main text column is not showing all its text, so pull its bottom-middle down until you can see all the text.
  27. On the Tablet artboard, the two background rectangles are a bit short. On the artboard, click on the main column’s white background to select it.
  28. Shift–click on the sidebar’s light blue background so both are selected.
  29. Drag the bottom resize handle down so they end a bit below the text. (If automatic snapping is not letting you get your desired size, disable Smart Guides by choosing View > Canvas > Show All Guides. Just be sure to turn it back on when you are done.)
  30. Hit Ctrl–R and Ctrl–L to get a better look at your work.

    NOTE: If you think the padding on the left and right is a bit tight, this is the least amount of padding you’d see. Larger screens will have the same width content area, but more space on the left/right sides. Padding amounts in pre-built grid systems are predefined, and you may or may not be able to customize them. You can create your own grid settings or customize the sizing of pre-made grid systems. To keep things simple, we used Bootstrap’s predefined grid.

  31. Do a File > Save (Cmd–S).

Adapting the Design for Mobile Phones

Multiple text columns don’t fit on small screens, so we can make the mobile layout a single column, with the white main column on top.

  1. In the Sidebar, click on Phone, then Shift–click on Tablet.
  2. Choose View > Zoom To > Selection.
  3. Click on a blank area of the canvas to deselect both artboards.
  4. To fit all the content, we’ll need to make the Phone artboard taller. At the top left of the artboard click on the word Phone to select the artboard.
  5. Grab the bottom resize handle and drag it down a little. Visually resizing can be nice, but we need a lot more space. Let’s type in a larger height.
  6. In the Inspector on the right, set H (Height) to 2000 and hit Return.
  7. Creating the Phone layout would be the same process of copy, paste, and adjust. You just did that, so we won’t make you do it again (although you can if you want).
  8. Save and close the file.

Is Stacking Elements the Best Solution?

It’s easy to think that mobile layouts should just be a stack of the same elements that appear as columns on larger screens. That may not always be the best design for users though. That can lead to very tall mobile layouts. Will users scroll down to see potentially important info?

There are alternatives to stacking. Sections could be collapsed for easy scanning (a tap could reveal more info). Multiple photos could merge into a slideshow. We’re not saying those are always the proper solutions either, but just some examples to get you thinking. Think about how users will interact with your content to decide what’s best for mobile, tablet, and desktop users.

Yelp Facebook LinkedIn YouTube Twitter Instagram