# Centering controls

**URL:** <https://community.stadium.software/community/t/centering-controls/214>\
**Category:** How To\
**Created:** [April 3, 2023, 7:55am UTC](https://community.stadium.software/community/t/centering-controls/214 "2023-04-03T07:55:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![franz](https://community.stadium.software/community/letter_avatar_proxy/v4/letter/f/c37758/32.png) [@franz](https://community.stadium.software/community/u/franz)\
**Post date:** [April 3, 2023, 7:55am UTC](https://community.stadium.software/community/t/centering-controls/214/1 "2023-04-03T07:55:27Z")

</div>

**Single Control**  
To center any control:

1. Add a grid control to your page
2. Add the control you want to center into the grid
3. Right-click on the Grid control and select the ‘Style’ menu option
4. Add the CSS below to the control

```auto
display: grid;
place-items: center;
height: 100vh; /*should exceed the height of the centered control*/
width: 100vw; /*should exceed the width of the centered control*/

```

**Multiple Controls**  
To center multiple controls inside a cell

1. Add a grid control to your page and add the CSS as above
2. Add a Container control into the grid
3. Add the CSS attribute ‘text-align: center;’ in the Style section of the Container Control
4. Place all controls you wish to center inside the container control

Note: This method does not work well for RadioButtonList and for CheckboxList Controls due to the default styling applied to these controls.

Here is a Stadium 6 sample application  
[Centering.sapz](https://community.stadium.software/community/uploads/short-url/pcAEFNaeT7aKwr6b2whM9Qb8NPF.sapz) (7.5 KB)
