Within a form I've nested a fieldsets within a fieldsets. I have the
nesting because I need to be able to disable individual groups of inputs
as well as "all" the inputs.
<form>
<fieldset class="top">
<!-- a number of inputs and their labels here -->
<fieldset class="nested">
<!-- a number of inputs and their labels here -->
</fieldset>
</fieldset>
<fieldset...
</form>
with this CSS
.top {
display: flex;
flex-wrap: wrap;
box-sizing: border-box;
width: 360px;
padding: 2px;
}
.nested {
display: grid;
width: 100%;
grid-template-columns: repeat(5, 1fr);
grid-column-gap: 8px;
grid-row-gap: 4px;
margin-bottom: 12px;
}
The trouble I'm having is that "nested" doesn't seem to display as a
grid. DevTools tells me it's a grid with all the associated columns etc
but the grid's content displays vertically (one under the other) each
item 100% wide (instead of honouring their column and row settings).
If I changed the nested fieldset to a div the gird displays as expected.
What could be the issue with the nested fieldset grid not "working".
On 2/09/2020 5:18 pm, Andrew Poulos wrote:
Within a form I've nested a fieldsets within a fieldsets. I have the
nesting because I need to be able to disable individual groups of
inputs as well as "all" the inputs.
If I changed the nested fieldset to a div the gird displays as
expected.
What could be the issue with the nested fieldset grid not "working".
In Message: <VoadnRuQXrHN2tLCnZ2dnUU7-L3NnZ2d@westnet.com.au>
Andrew Poulos <ap_prog@hotmail.com> wrote:
[snip]
If I changed the nested fieldset to a div the gird displays as
expected.
What could be the issue with the nested fieldset grid not "working".
https://stackoverflow.com/questions/51076747/grid-layout-on-fieldset-bug-on-chrome
On 3/09/2020 3:41 am, James Kirk wrote:
In Message: <VoadnRuQXrHN2tLCnZ2dnUU7-L3NnZ2d@westnet.com.au>
Andrew Poulos <ap_prog@hotmail.com> wrote:
[snip]
If I changed the nested fieldset to a div the gird displays as
expected.
What could be the issue with the nested fieldset grid not "working".
https://stackoverflow.com/questions/51076747/grid-layout-on-fieldset-bug
-on-chrome
That was from 2 years ago and the issue hasn't been fixed :-(
Andrew Poulos <ap_prog@hotmail.com> wrote on 03 Sep 2020 in comp.infosystems.www.authoring.stylesheets:
On 3/09/2020 3:41 am, James Kirk wrote:
In Message: <VoadnRuQXrHN2tLCnZ2dnUU7-L3NnZ2d@westnet.com.au>
Andrew Poulos <ap_prog@hotmail.com> wrote:
[snip]
If I changed the nested fieldset to a div the gird displays as
expected.
What could be the issue with the nested fieldset grid not "working".
https://stackoverflow.com/questions/51076747/grid-layout-on-fieldset-bu
g -on-chrome
That was from 2 years ago and the issue hasn't been fixed :-(
See also more recent:
<https://stackoverflow.com/questions/62692452/cant-position-html-legend-t
ag- with-css-grid>
On 3/09/2020 3:41 am, James Kirk wrote:
In Message: <VoadnRuQXrHN2tLCnZ2dnUU7-L3NnZ2d@westnet.com.au>
Andrew Poulos <ap_prog@hotmail.com> wrote:
[snip]
If I changed the nested fieldset to a div the gird displays as
expected.
What could be the issue with the nested fieldset grid not "working".
https://stackoverflow.com/questions/51076747/grid-layout-on-fieldset-bug-on-chrome
That was from 2 years ago and the issue hasn't been fixed :-(
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 216:18:18 |
Calls: | 6,621 |
Calls today: | 3 |
Files: | 12,169 |
Messages: | 5,317,607 |