> For the complete documentation index, see [llms.txt](https://docs.themeware.design/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.themeware.design/additional-features/cms-extensions/cms-blocks/grids.md).

# Grids

{% hint style="info" %}
**Note**: This article is work in progress.
{% endhint %}

Die **ThemeWare® Grid-Blöcke** sind universelle CMS-Blöcke. In diesen Blöcken kannst du verschiedene CMS-Elemente platzieren.

Die Grid-Blöcke haben daher keine speziellen CMS-Elemente.

***

## Available grid blocks

* [Grid 'Modern'](/additional-features/cms-extensions/cms-blocks/grids/grid-modern.md)
* [Grid 'Modern' (swapped)](/additional-features/cms-extensions/cms-blocks/grids/grid-modern-swapped.md)
* [Grid 'One'](/additional-features/cms-extensions/cms-blocks/grids/grid-one.md)
* [Grid 'One' (swapped)](/additional-features/cms-extensions/cms-blocks/grids/grid-one-swapped.md)
* [Grid 'Two'](/additional-features/cms-extensions/cms-blocks/grids/grid-two.md)
* [Grid 'Two' (swapped)](/additional-features/cms-extensions/cms-blocks/grids/grid-two-swapped.md)
* [Grid 'Three'](/additional-features/cms-extensions/cms-blocks/grids/grid-three.md)
* [Grid 'Three' (swapped)](/additional-features/cms-extensions/cms-blocks/grids/grid-three-swapped.md)
* [Grid 'Four'](/additional-features/cms-extensions/cms-blocks/grids/grid-four.md)
* [Grid 'Four' (swapped)](/additional-features/cms-extensions/cms-blocks/grids/grid-four-swapped.md)
* [Grid 'Five'](/additional-features/cms-extensions/cms-blocks/grids/grid-five.md)
* [Grid 'Five' (swapped)](/additional-features/cms-extensions/cms-blocks/grids/grid-five-swapped.md)
* [Grid 'Six'](/additional-features/cms-extensions/cms-blocks/grids/grid-six.md)
* [Grid 'Six' (swapped)](/additional-features/cms-extensions/cms-blocks/grids/grid-six-swapped.md)

***

## Add grid block

Wähle einen CMS-Block aus und ziehe diesen einfach per Drag’n’Drop in deine Erlebniswelt.

> **Hinweis**: Spalten-Blöcke findest du in der Rubrik "ThemeWare® Grids" \[Pro]

![Adding a grid CMS block](/files/00GjWJ74i0xndJ3bGw7V)

***

## Bildgrößen

Aufgrund des fluiden Webdesigns von Shopware 6 gibt es keine "perfekte" oder "richtige" Bildgröße. Die Größe der einzelnen Elemente ist variabel und abhängig vom verfügbaren Platz den die Elemente haben. Der verfügbare Platz unterliegt diversen Faktoren wie dem konfigurierbaren Padding des Blocks, der konfigurierbaren Container-Breite, dem Darstellungsmodus der Erlebniswelt und natürlich durch die Fensterbreite selbst in verschiedenen Viewports bestimmt. Dadurch kann es nicht den einen Wert geben.

Wir empfehlen daher für Bild-Elemente in Grid-Blöcken den Darstellungsmodus "Füllen". Dabei wird das Bild so skaliert und ggf. abgeschnitten, dass der Bild-Container immer vollständig ausgefüllt ist. Die Größe der Elemente selber kannst du über die Konfiguration "Minimale Höhe" definieren, mehr Informationen dazu findest du im folgenden Abschnitt.

***

## Bild-Elemente

Als Bild-Elemente kannst du die Teaser von ThemeWare® in den Grids nutzen. (Das Bild-Element von Shopware funktioniert ebenfalls.)

Die Größe der Elemente definierst du über die Konfiguration "Minimale Höhe" im Modus "Füllen" der entsprechenden Elemente. Damit Grids gut funktionieren ist hier etwas Mathematik nötig: Die "Minimale Höhe" der Elemente auf der linken Seite sollte in Summe dieselbe Höhe haben wie die Summe der "Minimale Höhe" aller Elemente auf der rechten Seite. Addiere etwaige Lücken (Standard: `40px`) zwischen den Elementen noch dazu.

<figure><img src="/files/YECVPHgFuNyJ9tI81aIX" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Hinweis**: Ohne "vertikale" und "horizontale" Ausrichtung werden die ThemeWare® Teaser auf die volle Höhe gestreckt. Dadurch kannst du für einzelne Elemente in asymmetrischen Grids (z.B. "Grid 'One'") auch von der oben genannten Rechnung abweichen und musst nicht auf eine identische Höhe beider Spalten achten.
{% endhint %}

***

## CSS-Klassen

In den Block-Einstellungen hast du die Möglichkeit CSS-Klassen für den entsprechenden CMS-Block zu definieren.

Für die ThemeWare® Grid-Blöcke sind folgende CSS-Klassen für die Abstände der Elemente im Block interessant:

{% embed url="<https://knowledge.themeware.design/knowledge-base/tutorials/shopping-experiences/adjusting-gaps-in-cms-blocks>" %}
ThemeWare® Knowledge Base => Adjusting gaps in CMS blocks
{% endembed %}

***

## Demos

You can find some examples of use in our demo shops:

{% embed url="<https://demo.themeware.design/modern/en/Features/ThemeWare-CMS-blocks/Grid-blocks/>" %}
ThemeWare® Demoshop => Grid blocks
{% endembed %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.themeware.design/additional-features/cms-extensions/cms-blocks/grids.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
