Author Topic: Vertical align the index column.  (Read 1626 times)

kiwon34

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 52
    • View Profile
Vertical align the index column.
« on: September 25, 2020, 01:51:48 pm »
Hi,

I was wondering if there is a way of vertical align the number of index column(first column).
The row height might change.

https://stackblitz.com/edit/paramquery-demo-numbercol

In the demo, you can see the numbers of first column is aligned to top.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Vertical align the index column.
« Reply #1 on: September 26, 2020, 05:07:58 pm »
you can use this css rule:

Code: [Select]
  .pq-grid-number-cell{
    display:flex;
    align-items: center;
    justify-content:center;   
  }

https://stackblitz.com/edit/paramquery-demo-numbercol-2zks3t?file=index.html