Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
485
Design grid to occupies whole width by column
posted

Hey Guys,

I have to design a grid in such a way that grid columns should occupies whole width of the grid.

Please note that grid data is dynamic and number of columns are not fixed.

Please help me.

  • 295
    Verified Answer
    posted

     Hi!

    U can use this logic:

      let x be the number of columns.

    so the width of a single column = 100/x;

    So set the width to "100/x %" for each column. By this way the columns will fit the grid, but the width of the columns will be same.