# Keep a CSS modified floating group anchored

**URL:** <https://forum.bubble.io/t/keep-a-css-modified-floating-group-anchored/107277>\
**Category:** Need help\
**Created:** [August 20, 2020, 9:51am UTC](https://forum.bubble.io/t/keep-a-css-modified-floating-group-anchored/107277 "2020-08-20T09:51:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vnihoul77](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vnihoul77/32/241345_2.png) [@vnihoul77](https://forum.bubble.io/u/vnihoul77)\
**Post date:** [August 20, 2020, 9:51am UTC](https://forum.bubble.io/t/keep-a-css-modified-floating-group-anchored/107277/1 "2020-08-20T09:51:14Z")

</div>

Hello!  
I wanted to create a livechat using floating group. So I made this floating group anchored to the bottom of the page :

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/4/64a4de94c24d644f977d416ea64529ecacb0fd97.png)

The issue is if the user screen height is too high, he can see the page in the background (see the blue bar in the screenshot)  
So I used to CSS tool plugin with these settings to get the floating group cover all the page height.  
But now the floating group keep the anchor to the top of the screen.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/7/f73c9187f728d85010a7a61b558eb76b3d14d7ec.jpeg)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/d/4d8bcd538fd252f69eebfcc1ae1edca70ccb2c01.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/1/2/12c77287e26bf50e73d183c5d52dca836bd1eba6.jpeg)

Does someone have an idea to keep the group anchored to the bottom despite the CSS edit?

Cheers 😉

---

<div class="post-metadata">

**Author:** ![nomorecode](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nomorecode/32/87996_2.png) [@nomorecode](https://forum.bubble.io/u/nomorecode)\
**Post date:** [August 20, 2020, 10:17am UTC](https://forum.bubble.io/t/keep-a-css-modified-floating-group-anchored/107277/2 "2020-08-20T10:17:26Z")

</div>

There’s no need to fiddle with any CSS for this mate, your overcomplicating your canvas \> if you float your header to the top it stays ‘top’ \> if you float your footer to the bottom it stays ‘bottom’ \> and let your RG messages expand naturally (RG \> full-list or horz ex). \*\*\*TIP remember to add both top and bottom buffers to your RG messages to allow margins.

---

<div class="post-metadata">

**Author:** ![vnihoul77](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vnihoul77/32/241345_2.png) [@vnihoul77](https://forum.bubble.io/u/vnihoul77)\
**Post date:** [August 20, 2020, 10:34am UTC](https://forum.bubble.io/t/keep-a-css-modified-floating-group-anchored/107277/3 "2020-08-20T10:34:23Z")

</div>

I agree but the problem if I use your solution, when an user will type a message, the will see something like this, because the RG will not be anchored to the bottom with the input:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/1/4/1433f1398122ec94f5f7dab6f83c26ef39e5ae87.png)

And I want him to see this, feels more native:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/5/a50df2afbc27336e427465b21f29886ecf06cafd.png)

---

<div class="post-metadata">

**Author:** ![nomorecode](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nomorecode/32/87996_2.png) [@nomorecode](https://forum.bubble.io/u/nomorecode)\
**Post date:** [August 20, 2020, 10:50am UTC](https://forum.bubble.io/t/keep-a-css-modified-floating-group-anchored/107277/4 "2020-08-20T10:50:36Z")

</div>

I think you’ve completing missed my last TIP.

In your RG \> create a buffer above and below your cell content and set the following cond on each buffer:

top buffer … only visible when RG … :first-item  
bottom buffer … only visible when RG … :left-item

\*\*\*Remember to set each buffer the exact same size as your header and footers or even bigger to allow more margin/s.

---

<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:** [October 29, 2020, 9:51am UTC](https://forum.bubble.io/t/keep-a-css-modified-floating-group-anchored/107277/5 "2020-10-29T09:51:16Z")

</div>

Closed on October 29, 2020, 9:51am UTC

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