56
Views
12
Comments
Align bottom
Question
Application Type
Reactive

Hi Community,

I have trying to align my button to the bottom of the container. The thing is, in ODC studio, it's displaying exactly how i want it. But after publishing and open in browser, the alignment is out. 

  • The container number and vessel name inputs, are wrapped in the SearchInputs container. Height: 61px
  • Label widget is 21px
  • Input box widget is 40px
  • In the ButtonContainer2 container, i had set the height to be 61px as well
  • There is an Empty_ForalignmentPurposes container, height has been set to 21px
  • Lastly, the container with the button, height has been set to 40px as well
  • For info, both the button widget, and the container it is in, their heights are 40px

What can i do to solve this?

Thanks!

2022-12-22 10-00-39
Beatriz Sabino

Hi Jun,

Have you tried to add the property bottom: 0 to your containers? You'll probably need to add a container wrapper with the property position:relative.

2022-05-01 03-47-53
Jun Mun Chan

Hi, i couldn't seems to make it work with this property, and i am really not that well-versed in CSS

2022-12-22 10-00-39
Beatriz Sabino

Hi Jun,

I created a simple .oml file. Can you check if this meets your needs?

AlignButtonBottom_Example.oml
2026-01-28 16-57-48
Mihai Melencu
Champion

Hi @Jun Mun Chan ,

Try the align-center widget. You can find more information about it here: https://success.outsystems.com/documentation/11/building_apps/user_interface/patterns/using_mobile_and_reactive_patterns/utilities/align_center/ .

If you don't have it in your application you can add it as a depedency.

2022-05-01 03-47-53
Jun Mun Chan

I think it is more of a work-around, rather than really aligning the button to the bottom of the container

Thou if there are no other options, i will definitely go with this option.

Thank you.

2026-01-28 16-57-48
Mihai Melencu
Champion

It's generally recommended to use OutSystems' built-in widgets whenever possible, rather than relying on custom CSS for the same functionality.

For example, the Align-Center widget vertically centers the elements within its container.

Alternatively, you can wrap everything in a container or use your main wrapper container and apply the following CSS: 

display: flex;

align-items: flex-end;


Also it would be great if you could attach a sample OML with your HTML structure to see exactly where the issue is.

2025-04-14 11-22-14
Aditi Saraswat

Hi @Jun Mun Chan,

I have replicated your problem, and it is working.

Please check the OML attached.

Hope this helps.

Thanks


ButtonAligmentDemo.oml
2022-05-01 03-47-53
Jun Mun Chan

What happen is that, you have set them into 2 rows. I needed them in 1 row.

Anyway, the oml can only be open with ODC studio. I had opened it, but i didn't publish, as i didn't want to publish it in my company environment.

Thank you.

2025-04-14 11-22-14
Aditi Saraswat

Can you share your OML. It will be more helpful


2025-04-14 11-22-14
Aditi Saraswat

Do you want your button to be aligned next to  the input box?

2022-05-01 03-47-53
Jun Mun Chan

Hi,

I wanted them something like this. 

  • SearchInputs Container - Contains the 2 labels and input widgets
  • ButtonContainer2 - Contains the 'empty' container with the height of 21px, and the button

Thank you.

2025-04-14 11-22-14
Aditi Saraswat

Hi @Jun Mun Chan,

It seems that the empty container in ButtonContainer2 was added solely for alignment purposes. I've updated my OML to reflect the changes based on your solution. 

Hope this will help and resolve your issue.

ButtonAligmentDemo.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.