# SOLVED IN 1.4: Section templates width is broken

**URL:** <https://forum.bricksbuilder.io/t/solved-in-1-4-section-templates-width-is-broken/2984>\
**Category:** Bugs\
**Tags:** feedback\
**Created:** [May 11, 2022, 9:51pm UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-section-templates-width-is-broken/2984 "2022-05-11T21:51:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yankiara](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/yankiara/32/2114_2.png) [@yankiara](https://forum.bricksbuilder.io/u/yankiara)\
**Post date:** [May 11, 2022, 9:51pm UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-section-templates-width-is-broken/2984/1 "2022-05-11T21:51:54Z")

</div>

**Bricks Version** : 1.4RC2

Since 1.4RC2, all my section templates widths changed to my root container’s width (1280px), breaking the design.  
In 1.4RC, those sections templates were full width.

The problem is now I have to edit all templates using this section template to manually set it to 100% width, this is not acceptable.

Section templates should be 100% width by default.

 ![image](https://forum.bricksbuilder.io/uploads/default/original/2X/c/cf1b54fe2fe60376a84dfd6ecf9ecf01257e25c1.png)

---

<div class="post-metadata">

**Author:** ![Sridhar](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/sridhar/32/22855_2.png) [@Sridhar](https://forum.bricksbuilder.io/u/Sridhar)\
**Post date:** [May 11, 2022, 11:14pm UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-section-templates-width-is-broken/2984/2 "2022-05-11T23:14:43Z")

</div>

This seems to be caused by 100% width getting removed from `[class*=brxe-]` change from RC1 to RC2.

In my site I had to add these to fix:

```auto
.brxe-template,
.brxe-post-content,
.brxe-code,
.brxe-post-comments {
    align-self: stretch;
}

```

---

<div class="post-metadata">

**Author:** ![omega](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/o/a6a055/32.png) [@omega](https://forum.bricksbuilder.io/u/omega)\
**Post date:** [May 12, 2022, 7:06am UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-section-templates-width-is-broken/2984/3 "2022-05-12T07:06:37Z")

</div>

Is it a bug or decision?

---

<div class="post-metadata">

**Author:** ![thomas](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/thomas/32/3_2.png) [@thomas](https://forum.bricksbuilder.io/u/thomas)\
**Post date:** [May 13, 2022, 3:43pm UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-section-templates-width-is-broken/2984/4 "2022-05-13T15:43:47Z")

</div>

@yankiara Thanks so much for reporting this issue. According to the setup it looks like the `.root` class on the container inside the Template element is the culprit. What we can do is to ensure the root container inside the Template element always get a width of 100%.

@Sridhar Yep, a few elements are missing the width: 100%. We’ll add it for Template, Shortcode, Code, Post Content, Post Comments. If you spot any other elements, please let me know.

I’d not recommend using `align-self: stretch` on individual elements as it’ll precede any `align-items` rules set on the parent container.

---

<div class="post-metadata">

**Author:** ![yankiara](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/yankiara/32/2114_2.png) [@yankiara](https://forum.bricksbuilder.io/u/yankiara)\
**Post date:** [May 13, 2022, 4:17pm UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-section-templates-width-is-broken/2984/5 "2022-05-13T16:17:41Z")

</div>

For me, it is .brxe-template which requires width: 100%, not the root container inside.  
Root container already has 100% width:

 ![image](https://forum.bricksbuilder.io/uploads/default/original/2X/f/fd1ec69dddd5e521c88f2aca0cc622c0be656b67.png)

---

<div class="post-metadata">

**Author:** ![yankiara](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/yankiara/32/2114_2.png) [@yankiara](https://forum.bricksbuilder.io/u/yankiara)\
**Post date:** [May 27, 2022, 9:23am UTC](https://forum.bricksbuilder.io/t/solved-in-1-4-section-templates-width-is-broken/2984/6 "2022-05-27T09:23:53Z")

</div>

Hi,

It seems 1.4 fixed the template width 🥳

Now, I would add that template element needs FULL HEIGHT as well 😉

```auto
.brxe-template {
    height: 100%;
}

```

If not, for instance, if you put your template element in a loop container inside a vertically stretched flex or grid, your items won’t stretch to bottom:

 ![image](https://forum.bricksbuilder.io/uploads/default/original/2X/a/ae6ac04c29b4a0f5dc451e12cc44ba1bbf77dd59.jpeg)

Well, anyway I guess `.brxe-template` should be removed in the first place 😉

> [@Remove template element container on frontend (.brxe-template)](https://forum.bricksbuilder.io/t/remove-template-element-container-on-frontend-brxe-template/3066):
>
> Hi, Is it possible to remove the .brxe-template container that encapsulates the actual template on frontend? I understand the builder can need a container, but once the template itself is recalled and rendered as html, I don’t see the use of it on frontend. It adds complexity to CSS, especially inside grids (for alignments). I think it would help a bit root logic as well when recalled as top level section. Thx!
