# Fit Width to Content Row Containers - New Thread

**URL:** <https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600>\
**Category:** Bugs\
**Created:** [August 31, 2024, 6:01am UTC](https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600 "2024-08-31T06:01:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [August 31, 2024, 6:01am UTC](https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600/1 "2024-08-31T06:01:15Z")

</div>

> [@Fit Width to Content Row Containers](https://forum.bubble.io/t/fit-width-to-content-row-containers/335551):
>
> If you have a row container and set it to fit width to content and you put a text element inside of that row container and set the text element to fit width to content and then your page width decreases to the point that the text would need to break to a new line, Bubble does not break to a new line any longer and instead makes the group and text element go off screen. This has not always been the case and I can not estimate when this Bug started to happen. So, you can only use a column group …

@sudsy I’ve heard back from support with new details on how to make this work and I am kind of appalled at the difference here.

First setup below

 ![Screen Shot 2024-08-31 at 12.58.18 PM](https://us1.discourse-cdn.com/bubble/original/3X/b/0/b0ded9fa387b0ed00c4f2ea46963199cc756a6f4.png)

Result

 ![Screen Shot 2024-08-31 at 12.58.45 PM](https://us1.discourse-cdn.com/bubble/original/3X/e/6/e6def03afcd444f8fd91bae2121906fa9a6f58f1.png)

Second setup below

 ![Screen Shot 2024-08-31 at 12.59.10 PM](https://us1.discourse-cdn.com/bubble/original/3X/d/9/d9155d040f980c7371edbe4c3c76cda06e1a6ce2.png)

Result

 ![Screen Shot 2024-08-31 at 12.59.28 PM](https://us1.discourse-cdn.com/bubble/original/3X/7/e/7e09bcadf084dbd514be196a1754329234dd5918.png)  
 ![Screen Shot 2024-08-31 at 12.59.41 PM](https://us1.discourse-cdn.com/bubble/original/3X/0/c/0cfc5a07e1fc9443d031e6138b101aa8e41444fb.png)

What is the difference? Close inspection and it will be seen to be so insignificant, that it makes me angry…the difference is using 0% instead of 0px for the minimum width…ABSOLUTELY nothing else is different, and that to me would imply there is a BUG…we should not have to fiddle with 0% versus 0px to get something to work as expected.

---

<div class="post-metadata">

**Author:** ![ihsanzainal84](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ihsanzainal84/32/245932_2.png) [@ihsanzainal84](https://forum.bubble.io/u/ihsanzainal84)\
**Post date:** [August 31, 2024, 10:44am UTC](https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600/2 "2024-08-31T10:44:04Z")

</div>

Holy crap, i never thought to try that.

I haven’t checked yet but the difference is probably in the width values of the element. Use the browser inspector.

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [August 31, 2024, 11:27am UTC](https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600/3 "2024-08-31T11:27:44Z")

</div>

> [@ihsanzainal84](#):
>
> width values of the element

0px would equal 0% wouldn’t it? There should not be a difference in behavior between 0px and 0%. Both should have the same behavior.

---

<div class="post-metadata">

**Author:** ![Newed](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/newed/32/262530_2.png) [@Newed](https://forum.bubble.io/u/Newed)\
**Post date:** [August 31, 2024, 12:20pm UTC](https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600/4 "2024-08-31T12:20:24Z")

</div>

Are you sure that nothing is different in the parent container? Because this doesn’t make any sense. 🤔

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [August 31, 2024, 1:50pm UTC](https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600/5 "2024-08-31T13:50:18Z")

</div>

Yes, I’m sure

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [August 31, 2024, 4:26pm UTC](https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600/6 "2024-08-31T16:26:45Z")

</div>

Wow. Yeah, I would agree that’s certainly unexpected. Even if it works consistently across all supported browsers and OS’s, I have to believe it’s more a “quirk” of implementation rather than an intentionally designed feature. It’s hard to imagine that anyone would intuit such behavior.

🤨

Thanks for sharing.

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [September 12, 2024, 4:05am UTC](https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600/7 "2024-09-12T04:05:31Z")

</div>

This is what support has replied

> Thanks again for your continued patience! I’ve just received word from our Engineering team regarding this discrepancy when using 0% vs. 0px for the min-width.
> 
> It turns out that using 0% width inside a group that is fitting its width to content is something that is not well-defined in the CSS spec. This ends up causing the browser to do whatever it wants (in this case, essentially enabling fit width to content). On the other hand, using 0px width instead is something that is well-defined — because the text element does not fit its width to its content, it picks the minimum size (in this case, 0px).
> 
> In other words, it appears this is a CSS-related behavior rather than a bug in Bubble’s code.

---

<div class="post-metadata">

**Author:** ![GH5T](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gh5t/32/209141_2.png) [@GH5T](https://forum.bubble.io/u/GH5T)\
**Post date:** [September 12, 2024, 5:40am UTC](https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600/8 "2024-09-12T05:40:03Z")

</div>

Wow… I’ve ran into this issue numerous times without realizing it. I have a different fix for that and I’m not sure I’ve ran into the issue recently. I believe I just wrap the text but I’m not sure.

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [September 12, 2024, 5:43am UTC](https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600/9 "2024-09-12T05:43:03Z")

</div>

> [@GH5T](#):
>
> I believe I just wrap the text

What do you mean by wrap the text?

---

<div class="post-metadata">

**Author:** ![GH5T](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gh5t/32/209141_2.png) [@GH5T](https://forum.bubble.io/u/GH5T)\
**Post date:** [September 12, 2024, 5:46am UTC](https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600/10 "2024-09-12T05:46:59Z")

</div>

In a container.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [September 14, 2024, 6:01am UTC](https://forum.bubble.io/t/fit-width-to-content-row-containers-new-thread/337600/11 "2024-09-14T06:01:59Z")

</div>

Closed on September 14, 2024, 6:01am UTC

This topic was automatically closed after 14 days. New replies are no longer allowed.
