# Need help with aligning buttons

**URL:** https://community.glideapps.com/t/need-help-with-aligning-buttons/50117
**Category:** Ask for Help
**Created:** [September 25, 2022, 6:38am UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117 "2022-09-25T06:38:43Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [September 25, 2022, 6:38am UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/1 "2022-09-25T06:38:43Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/e/9eb3a2400e217ea9e46ba004c50e56acb8d8d1ce.jpeg)

Im able to create a row of icons that can link out to external sites using html and css only.

However, I am interested in doing the same thing but using button components so I can get additional actions other than open link.

Anybody have any ideas on how to achieve?

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [September 25, 2022, 6:55am UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/2 "2022-09-25T06:55:14Z")

</div>

use CSS images with actions… not buttons, much easier!

---

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [September 25, 2022, 6:57am UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/3 "2022-09-25T06:57:16Z")

</div>

Like add 3 separate image components and use css to align?

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [September 25, 2022, 6:58am UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/4 "2022-09-25T06:58:26Z")

</div>

yes… or just place the image link directly into CSS…

> **[Code BOOK - Desktop](https://code-book-desktop.glideapp.io/)**
>
> share cool CSS, scripts and links

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [September 25, 2022, 7:07am UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/5 "2022-09-25T07:07:05Z")

</div>

Are the number of icons fixed?

For something like that, I think I’d just use an Inline List, and use Hero Icons as the images.  
Relatively simple, little or no CSS required.

---

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [September 25, 2022, 7:13am UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/6 "2022-09-25T07:13:40Z")

</div>

There is a maximum number of icons, but could range from 0-4 depending on if the user adds the corresponding link. Thus the horizontal list would be dynamic.

Also would like unique actions per icon as not all will open an external link.

I can try and see if an inline list will work. Thanks!

---

<div class="post-metadata">

### Author: ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)
#### Post date: [September 25, 2022, 7:16am UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/7 "2022-09-25T07:16:21Z")

</div>

you can replace image links using a template column… this way, you have more freedom arranging your buttons… the inline list has limitations… also it might not work well with CSS on many devices or OS

---

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [September 25, 2022, 7:17am UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/8 "2022-09-25T07:17:46Z")

</div>

Ill try tomorrow and report back my results. Thanks for the suggestions!

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [September 25, 2022, 7:57am UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/9 "2022-09-25T07:57:11Z")

</div>

> [@Joe\_Gabriele](#):
>
> There is a maximum number of icons, but could range from 0-4 depending on if the user adds the corresponding link. Thus the horizontal list would be dynamic.

Inline List using a tiles layout can have up to 4 side by side, so that would work out.  
Only thing is if you have less than 4 then they’ll be left aligned, which might look a bit wonky.  
But it would probably be possible to get them centred with a bit of CSS. Of course that would need to be dynamic, taking the number of items into account - so could get a bit fiddly.

---

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [September 25, 2022, 1:53pm UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/10 "2022-09-25T13:53:07Z")

</div>

I wad able to use a Title Component to make it look exactly like one of the above icons, however still lost on aligning multiple Title Components together.

And yes the Inline list option didnt work for this use case.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [September 25, 2022, 2:08pm UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/11 "2022-09-25T14:08:43Z")

</div>

Just out of curiosity, what was the challenge with the Inline List?  
Was it just not being able to get them centred, or something else?

---

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [September 25, 2022, 2:49pm UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/12 "2022-09-25T14:49:29Z")

</div>

Basically, if I have up to 4 List Items, make the Inline List Display 4 items Horizontally, filter the list based on if Link provided and only 3 items have links, then the list is no longer centered.

In addition, I cant assign individual actions to each List Item as they all act the same. I would like multiple components with Actions (title, image, rich text, etc) that are aligned horizontally. This way, 1 icon can open a form, another opens an external link, another opens compose email, etc.

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [September 25, 2022, 2:59pm UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/13 "2022-09-25T14:59:28Z")

</div>

> [@Joe\_Gabriele](#):
>
> the list is no longer centered

As long as you have a value in the table that is the source of your screen that indicates if you need 3 items it 4 items, then you could use that as a visibility condition to show either a 3 wide list or a 4 wide list.

> [@Joe\_Gabriele](#):
>
> I cant assign individual actions to each List Item as they all act the same

You can definitely assign individual actions to each list item. You just need a column value in each list item row that you can use with an IF condition in a custom action to identify which action you want to happen when you click on an item in your list.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [September 25, 2022, 3:00pm UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/14 "2022-09-25T15:00:05Z")

</div>

> [@Joe\_Gabriele](#):
>
> Basically, if I have up to 4 List Items, make the Inline List Display 4 items Horizontally, filter the list based on if Link provided and only 3 items have links, then the list is no longer centered.

mmm, I can’t help with that, but one of the CSS gurus might be able to.

> [@Joe\_Gabriele](#):
>
> In addition, I cant assign individual actions to each List Item as they all act the same. I would like multiple components with Actions (title, image, rich text, etc) that are aligned horizontally. This way, 1 icon can open a form, another opens an external link, another opens compose email, etc.

yeah you can. Use a custom action with a separate conditional branch for each list item.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [September 25, 2022, 3:01pm UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/15 "2022-09-25T15:01:02Z")

</div>

> [@Jeff\_Hager](#):
>
> As long as you have a value in the table that is the source of your screen that indicates if you need 3 items it 4 items, then you could use that as a visibility condition to show either a 3 wide list or a 4 wide list.

oooh, nice trick 👍  
and so obvious, haha

---

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [September 25, 2022, 3:18pm UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/16 "2022-09-25T15:18:31Z")

</div>

Ah perfect, that works! Just need to figure out the css to reduce image size of each. Interestingly enough. I have a Hero Icon at 50px and use circle image size yet image is quite large. Reducing the Hero Size doesnt seem to effect the Inline Image Size. But this is definitely putting me on the right track!

---

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [September 25, 2022, 3:28pm UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/17 "2022-09-25T15:28:54Z")

</div>

![Screen Shot 2022-09-25 at 11.31.37 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/3/63d5a452cae35749554187a68cebbdd8286ca0bd.png)

Bottom is the new inline list with custom actions for each icon. Nice!

---

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [September 25, 2022, 4:11pm UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/18 "2022-09-25T16:11:26Z")

</div>

Question,

I have a Restaurant Sheet with all their detail information.

To create this new icon Inline List, I created a new Sheet which has the HeroIcons and Names.

Within my App, I am using the Restaurant Sheet with an Inline List pointing to the Icon List. However, all the actions are based on the Icon List. Any ideas on how to structure this Icon Inline List so its related to all the details in the Restaurant Sheet?

Using the above Screenshot, I need Website to go to that specific restaurant’s website. A series of Temps and ITEs on the Restaurant Sheet?

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [September 25, 2022, 5:58pm UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/19 "2022-09-25T17:58:07Z")

</div>

Read through this thread. It should be a very similar setup. If you have questions, let me know.

> [@A custom button bar question](https://community.glideapps.com/t/a-custom-button-bar-question/49713):
>
> Hi Gliders, I have created my own Glide App called TV Shows. In this, I keep track of what episode I have watched from which TV Show. So I know what episode I need to watch next. Because I have so many shows, I have sorted them by which show I had watched last, at the bottom of the list. Right now, I have placed a list of episode numbers in an options tab in my Google Sheets and I am using the Choice component to select what episode I am watching. If I want to select episode number 20, I nee…

---

<div class="post-metadata">

### Author: ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)
#### Post date: [September 25, 2022, 6:34pm UTC](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117/20 "2022-09-25T18:34:06Z")

</div>

Thanks I reviewed your suggestion in the linked post.

I was able get it to work for the most part .

However, if someone goes to the Restaurant’s site via Deep Link, the Set Column action is bypassed and not triggered to set columns, making the USC’s not updated.

[Next page](https://community.glideapps.com/t/need-help-with-aligning-buttons/50117.md?page=2)
