I am currently working on a dynamic grid structure in my project, using div
layout. The number of columns
and rows
can vary as they are retrieved from the json
data in AngularJS.
The grid should allow both horizontal and vertical scrolling when the columns
or rows
(or both) exceed the available width
.
To address this, I have implemented the following CSS:
.wrapper {
white-space: nowrap;
overflow-x: auto;
}
However, the main issue I'm facing is that the background colors do not apply to the columns and rows that extend beyond the grid's width.
Expectation: I expect both the header (columns) and data-list (rows) to inherit their respective background colors
.