Make a Two-Column Restaurant Menu That Stacks on Mobile

Sample two-column café menu with coffee and cheesecake cards, each with an illustrative price

Put each dish, price, and optional image in one card, then let CSS Grid choose how many cards fit across the menu. The café menu below uses two columns with enough room and one column when space is tight. Each price stays with its dish in either layout.

Try the café menu at two widths

Sample menu with illustrative prices. Images are AI-generated: Rainy Café Window Background and Classic Baked Cheesecake Slice, available under the Stock Tour Asset License.

Keep each dish and price together in the HTML

Make one card per item and keep the cards in reading order. Put the price in the same paragraph as the item name, and put the description below. Add the following markup to a page and repeat the article for your second item.

<div class="menu-demo">
  <article class="menu-demo-card">
    <img class="menu-demo-image" src="coffee.webp"
      width="1024" height="1536" alt="Cup of coffee on a windowsill">
    <p class="menu-demo-label">
      <strong>House coffee</strong><span>$4</span>
    </p>
    <p>Freshly brewed, served hot.</p>
  </article>
  <!-- Add another card here for the second item. -->
</div>

Let the container width control the columns

Apply the following CSS to the example. Set each column’s minimum to 230 pixels and the gap to 16 pixels, so two columns need at least 476 pixels inside the menu. The min(100%, 230px) expression lets a single column shrink further in a narrow container. The 720-pixel cap keeps this example to at most two columns.

.menu-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
  max-width: 720px;
}
.menu-demo-card {
  min-width: 0;
  margin: 0;
}
.menu-demo-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 70%;
}
.menu-demo-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0;
}

MDN’s grid guide explains the auto-fit pattern. The image rules give both cards a 3:2 frame. The 70% vertical position keeps more of the lower part of each source in the crop. If your subject still gets cut off, see how to move the crop with object-position.

Check the dish name and price at the narrowest width

Make the window narrow and check that the first item stays above the second, the labels stay readable, and a long dish name wraps within its own card. If you sell courses for one menu price, use a shared price heading and follow the prix fixe wording examples for the included dishes and optional charges.

Find more free food images

Search ingredients, seasonal food and backgrounds in the Image Library.