# Section

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

The `section` block is one of the most important parts in the structure and layout of a webpage. Sections contain related inner blocks and divide the webpage into readable and fluid content.

By default, when adding a Cwicly Section a container block is automatically inserted inside.&#x20;

{% hint style="info" %}
When updating from a version prior to 1.2.9.8, Cwicly will automatically toggle on the Deprecated section layout and deprecated button styles.

So if you want to reveal the section container, you need to access the Deprecate settings and toggle off.
{% endhint %}

## Add

There are two ways of adding a section, from the Quick Inserter or the Block inserter.

### Quick Inserter

* Find the Section block in the Quick Inserter and click to insert.

To visualise the Quick Inserter you need to enable it. [Quick Inserter.](#quick-inserter)

![](/files/TggwXOJBB9TGdRjgkqRi)

### Block Inserter

* Find the Block Inserter and select or search for the Cwicly Section block.
* Click to add.

<figure><img src="https://lh3.googleusercontent.com/65T4uLr6hfZUpfKc4sf-RXt4kw11yBJfSi7ZC8IArvrByWI2ETTaxAJ8zkL8otzIXsrLApQqi1_A76cXYH-4ovBtifWXKwjEaeU8CB_74XQcE7hRFETjATuH6_4_NIXDYIZIGVpiAAFPeC-StDcpHOB6-p0I-FP1VBrbbKP_HFq0vlSeMcMyjvJrBQj8DQ" alt=""><figcaption></figcaption></figure>

## Structure

### Outer Section wrapper and Inner Container

By default, the Cwicly Section is made up of two elements, an outer wrapper, or Section wrapper, and an inner container.

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

### Outer Section wrapper

The Cwicly Section has a semantic \<section> tab.

### Inner Container

The inner container defines the website content width and is centered on the page.

Some content such as backgrounds and images can break out of the container width but most content will be inside.

<figure><img src="/files/02hdhfYyeVWQ6YmMr1Xr" alt=""><figcaption></figcaption></figure>

### Inner Container defaults

A .cc-cntr class is added by default and applies a maximum width of 1366px.

{% hint style="info" %}
This will not necessarily be apparent on small screen sizes.
{% endhint %}

## Global Settings

You can apply your own section and container settings globally from the Block Inspector.

* Open the Block Inspector and open Global Styles.
* Open the Elements tab and Block tab.

### Section

* Open the Section tab and click the "+" sign to open the Section settings panel.

![](/files/57r1T19oxTyAvdsz2tof)

* Click to open the Section settings you wish to apply.

![](/files/py3ePcaqK3mq0pAe2enH)

* Customise as required.&#x20;

<figure><img src="/files/7Wr7J82OevTpf8A9vBgF" alt=""><figcaption></figcaption></figure>

### Container

* In the Block tab, open the Container tab.
* Click the "+" icon to add Container settings.

### ![](/files/Z5As4cS76pmtxWerBK2D)

* Click the Container field to open the Container settings.

### ![](/files/c30s5HhOABBpcEDc9d4Y)

* Customise the Global container settings as required.
* For instance, you can modify the Max Width as required.

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

### Add CSS class to section

From Global Styles, you can add a CSS class to add specific styles to a section.

In the Block tab of the Elements tab of the Global Styles tab, open the Section tab.

* Click the "+" sign to add a new class and input a meaningful section name and class name.

![](/files/vPgfwovF7m5qr3fX7WCJ)

* Style as required. In this example we are adding a black background.

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

* Select the specific section to which you wish to apply the black background styles.
* Click the "+" sign to add a class.

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

* Find the class you created in the panel.

![](/files/Fdu7tN8V4jTy80OuwSUE)

* Press enter. The black background will be applied to the designated section.

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

### Add CSS class to container

From Global Styles, you can add a CSS class to add specific styles to a container.

In the Block tab of the Elements tab of the Global Styles tab, open the Container tab.

* Click the "+" sign to add a new class.&#x20;

![](/files/BSmDh8TYc9GsbI1LOWBT)

* Input a meaningful container name and class name.
* Style as required, in this case we have given it a black background.

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

* Select the Container to which you wish to apply the class and styles you have created.
* Click the "+" sign to add a class.

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

* Find the class you created in the Classes modal and click "Enter" to apply.

![](/files/E9km7jtsO5b5tmJknDwC)

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

### Section VS. Div

`<section>` means that the content inside is grouped (relates to a single theme), and should appear as an entry in an outline of the page. Basically, it is used to group elements together, pertaining to the same theme.

{% hint style="info" %}
The `<section>` element is appropriate only if the element’s contents would be listed explicitly in the document’s outline. (i.e. Front Page, About, Pricing...)
{% endhint %}

<figure><img src="https://lh3.googleusercontent.com/RTIPoesqd8Fb60IbXYPpzQINWdJxRgJsFJ3ZDCvcWp8NZk31HVvWYl2ozc_p-LkDvDyMGXBN2joxIKmtlvsL0F5S8r4UkwD87jPU1q2zWoM39blKfv3UattYiP8n5WzC_oEKPVZPhAckr2yMb46ivnxpjnOS2WgRQrTBG3h5ZNV2m246YOkjLsWuyZrLXA" alt=""><figcaption></figcaption></figure>

`<div>`does not convey any meaning, aside from any found in its `class` and `title` attributes.

{% hint style="info" %}
When an element is needed only for styling purposes or as a convenience, it is encouraged to use the `<div>` element instead of`<section>`.
{% endhint %}

## Deprecate Settings

When updating from a version prior to 1.2.9.8, Cwicly will automatically toggle on the Deprecated section layout and deprecated button styles.

So if you want to reveal the section container, you need to access the Deprecate settings and toggle off.

* In the Dashboard, open the Settings panel.
* Find Deprecated.
* Toggle off Deprecated Section Layout.

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


---

# 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.cwicly.com/blocks/section.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.
