I have a screen where there are five regions side by side. Because apex works on the basis of 12 grid columns, I am facing an issue where five regions are not spanning horizontally equally basically 20% each.
Each region is occupying 2 grid columns out of 12 grid columns, so total 10 grid columns are occupied and the rest 2 grid columns stay empty like below
Is there a way through which I can span them equally across screen so that no space is left out on either ends?
Using oracle apex 24.2 with 23ai
I have a screen where there are five regions side by side. Because apex works on the basis of 12 grid columns, I am facing an issue where five regions are not spanning horizontally equally basically 20% each.
Each region is occupying 2 grid columns out of 12 grid columns, so total 10 grid columns are occupied and the rest 2 grid columns stay empty like below
Is there a way through which I can span them equally across screen so that no space is left out on either ends?
Using oracle apex 24.2 with 23ai
Share Improve this question asked Mar 14 at 15:26 Arif Sher KhanArif Sher Khan 5855 silver badges15 bronze badges 3 |1 Answer
Reset to default 1Use your own css classes for this and ignore the default APEX grid columns. The example below creates a container region with 5 sub regions displayed next to another. Flexbox has a lot of attributes - I used this site to get familiar with it. Example:
css classes
Page attributes > CSS > Inline
.flex-container {
display: flex; /* or inline-flex */
flex-wrap: nowrap;
overflow: auto;
}
.flex-item {
flex-basis: 500px;
flex-direction: column;
align-items: center;
justify-content: flex-start;
flex-grow: 1;
container region
Create a region with "Blank with Attributes (No Grid)" template and assign the flex-container class:
child regions
Create 5 subregions of the container region with class flex-item
grid
layout? – Paulie_D Commented Mar 14 at 15:58<>
icon. See How to create a Minimal, Reproducible Example – Paulie_D Commented Mar 14 at 15:58