# CSS Question - how to align columns in a modal

**URL:** <https://forums.knack.com/t/css-question-how-to-align-columns-in-a-modal/19312>\
**Category:** Get Answers\
**Created:** [May 10, 2025, 2:27pm UTC](https://forums.knack.com/t/css-question-how-to-align-columns-in-a-modal/19312 "2025-05-10T14:27:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeighBerre96926](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/leighberre96926/32/4896_2.png) [@LeighBerre96926](https://forums.knack.com/u/LeighBerre96926)\
**Post date:** [May 10, 2025, 2:27pm UTC](https://forums.knack.com/t/css-question-how-to-align-columns-in-a-modal/19312/1 "2025-05-10T14:27:24Z")

</div>

I’m using a modal with a mix of 1 and 2 columns, as below. I’ve worked out how to make the labels a consistent width, but how could i make the two columns line up for the full modal length? **All advice gratefully accepted** , because nothing i have tried has worked.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/f/facd260ea596fc37477ae6577bf9568dcd3dfce0.png)

Sorry about the awful redaction, but the info is confidential…

---

<div class="post-metadata">

**Author:** ![LeighBerre96926](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/leighberre96926/32/4896_2.png) [@LeighBerre96926](https://forums.knack.com/u/LeighBerre96926)\
**Post date:** [May 11, 2025, 12:40am UTC](https://forums.knack.com/t/css-question-how-to-align-columns-in-a-modal/19312/2 "2025-05-11T00:40:57Z")

</div>

I finally worked it out - I just individually forced the three left hand column sections to a fixed width:

```auto
#view_51 > section > div > div:nth-child(1) > div:nth-child(1) {
    width: 450px !important;
    min-width: 450px !important;
    max-width: 450px !important;
}
#view_51 > section > div > div:nth-child(3) > div:nth-child(1) {
    width: 450px !important;
    min-width: 450px !important;
    max-width: 450px !important;
}
#view_51 > section > div > div:nth-child(5) > div:nth-child(1) {
    width: 450px !important;
    min-width: 450px !important;
    max-width: 450px !important;
}

```

Seems to work well enough, so I’ll call a day.
