Skip to main content
Keerthi0555
Level 5
Jan 29, 2024 11:47 AM UTC

Grid-layoutt

Hi Team,

I'm trying to to get grids of 8 column in aem on mobile and tablet view by using grid.less, I tried  adding max-col to 8  for mobile and tablet media's but it's not working is there any other way to do this.

Thanks in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

arunpatidar
Community Advisor
Community Advisor
Jan 29, 2024 2:02 PM UTC
Keerthi0555
Level 5
Jan 29, 2024 2:25 PM UTC

no, like below,but it's not working any other approach?

/* maximum amount of grid cells to be provided */
@518014_col: 12;

/* default breakpoint */
.aem-Grid {
  .generate-grid(default, @518014_col);
}

/* phone breakpoint */
@590883(max-width: 767px) {
  @518014_col: 8;
  .aem-Grid {
    .generate-grid(phone, @518014_col);
  }
}
Translate