# Inline Group Container

## Overview

The **Inline Group Container** allow syou to use at best the available width dividing the available width in 3 horizontal section, **left**, **right** and **content**; the left and the right section will use all and only the necessary width depending on their content (if any); the **content** section instead will use all the remaining width.

![Inline Group Container](/files/Vjhgr7EIUKvOV54krPis)

## Getting Started

You can drop Servoy any Servoy Web Components and nest other 12Grid containers into the **left**, **right** and **content** section.

You may decide to leave empty the **right** or **left** section, not necessarily you need to use these section; however you may use at least one of these 2 sections; otherwise you may not use this container at all since there is no benefit on using only the **content** section.

{% hint style="info" %}
**IMPORTANT!** The parent container of the inline group container MUST have a known width, the inline group container is not useful at all if the width of its top container is `auto` (which is an unknown value).
{% endhint %}

![Inline Group Container Outline](/files/j1jmGWjg70XThNC3U9T0)

## Create an Inline Group Container

<div align="left"><figure><img src="/files/Ho6wejO0ae1pyAGmjy2Y" alt=""><figcaption><p>Create an Inline Group Container</p></figcaption></figure></div>

These are the steps for creating an Inline Group Container :

1. Open the [Form Editor](/reference/servoy-developer/object-editors/form-editor.md) of your **responsive form**
2. Find **Inline Group Container** in *Templates* subsection of the *Bootstrap 12-Grid* section in the components' pallet
3. Drag and drop the **Inline Group Container** component in:
   * empty space of the form, as an independent component
   * inside any other container components, **except** [Container](/guides/develop/application-design/forms/layout-management/home/b12grid.md#container), [Row](/guides/develop/application-design/forms/layout-management/home/b12grid.md#row)
4. Add other needed components inside the **left**, **right** and **content** sections of **Inline Group Container**, **except** for [Container](/guides/develop/application-design/forms/layout-management/home/b12grid.md#container), [Column](/guides/develop/application-design/forms/layout-management/home/b12grid.md#column) or [Flex Item](/guides/develop/application-design/forms/layout-management/home/flexbox.md#flex-item)

## Fixed Left/Right Section Size

You may force the **left** and or **right** section to a fixed width by setting the respectively the `data-leftsize` and `data-rightsize` attribute of the inline group container to one of the pre-defined values `xs`, `sm`, `md`, `lg`.

Setting a fixed size to a section is particularly useful when you want to align multiple label and fields using multiple inline group containers.

![Fixed Section width](/files/mdyMiQwe0llcGR6Advm2)

![Fixed Section width Outline](/files/uZCN4bJonV3YbcdpAnZM)

You can override the default sizes of the pre-defined values by adding the following CSS rules to the CSS styleSheet of your Solution.

```css
 /* Inline Group Sizes */
.inline-group[data-leftsize="xs"] > .inline-group-left,
.inline-group[data-rightsize="xs"] > .inline-group-right {
 	width: 40px;
}
 
.inline-group[data-leftsize="sm"] > .inline-group-left,
.inline-group[data-rightsize="sm"] > .inline-group-right {
 	width: 80px;
}
 
.inline-group[data-leftsize="md"] > .inline-group-left,
.inline-group[data-rightsize="md"] > .inline-group-right {
 	width: 120px;
}
 
.inline-group[data-leftsize="lg"] > .inline-group-left,
.inline-group[data-rightsize="lg"] > .inline-group-right {
 	width: 160px;
}
```

You can of course decide also to add your own CSS class to set a specific width to the section instead of using the pre-defined sizes.

## Responsive Section

You can enable a responsive behavior for the **left** section using the attribute `data-responsive` of the inline-group-container. You can select a breakpoint value (`sm`, `md`, `lg`) for which the left section will move into a new line when the screen size is smaller than the breakpoint value; see the [Bootstrap CSS Media Query](https://getbootstrap.com/docs/3.0/css/#grid-media-queries) for the breakpoint values.

![Responsive Section](/files/zo7svLj3ms0cdDAaOAF0)

![Responsive Section Outline](/files/cFjtu1G6KPapopplWLHK)

## Nesting Inline Group Containers

You can nest multiple inline group container within the content section to sub-divide the available width of the content section.


---

# Agent Instructions: 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:

```
GET https://docs.servoy.com/guides/develop/application-design/forms/layout-management/home/inline-group-container.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
