---
title: "Wide and narrow"
description: "One wide and one narrow, under each other on a phone. Follows the window."
group: "Layout"
order: 4
---

One wide and one narrow, under each other on a phone. Follows the window.

Styles: `components/item.css`, `components/card.css`.

```html
<div class="moin-grid" data-cols="2-1">
  <div class="moin-card moin-center">Wide</div>
  <div class="moin-card moin-center">Narrow</div>
</div>
```

## A label and two answers

`data-cols="2-3-3"` is a label and two answers, under each other on a phone. Rows in a list keep the same columns, so they line up. `data-fit` and `data-cols="3"` cannot do this: their columns are equal, and they wrap differently from row to row as the window narrows.

```html
<div class="moin-grid" data-cols="2-3-3">
  <div class="moin-card moin-center">Label</div>
  <div class="moin-card moin-center">One answer</div>
  <div class="moin-card moin-center">Another answer</div>
</div>
```

## A part with its own width

`moin-width` gives a part of a row its own `--width` from a tablet up, and the whole line on a phone. With `data-fixed` it keeps that width on a phone too.

```html
<div class="moin-row" data-wrap data-gap="2">
  <div class="moin-card moin-center moin-width" style="--width:12rem">12rem</div>
  <div class="moin-card moin-center moin-width" data-fixed style="--width:8rem">8rem, always</div>
  <div class="moin-card moin-center moin-fill">The rest</div>
</div>
```
