Hi all, I have a layout issue using CSS grids with template columns, see image: Where I have the headers, Roll, Weapon etc. you can see the underlying rows do not match up. The headers are <span> tags and the rows underneath are <div>s with the same CSS classes applied, but as you can see from the pic there's a width problem going on where the headers become progressively offset... The <span> header and various <input> tags for the rows tags have no particular width styling... The <div>s have these rules: Header: <div class="sheet-laf-centredgrid sheet-laf-weaponlist sheet-bold"> Row: <div class="sheet-laf-centredgrid sheet-laf-weaponlist sheet-redborder"> And the CSS rules are: .sheet-laf-centredgrid { margin-left: auto; margin-right: auto; display: grid; column-gap: 10px; } .sheet-laf-weaponlist {
grid-template-columns: 0.3fr 2fr 0.75fr 1fr 1fr 0.5fr 0.5fr 0.5fr 0.5fr 0.5fr 0.7fr;
margin-bottom: 3px;
} .sheet-redborder {
border: red solid 1px !important;
padding: 2px;
} Nothing particularly controversial... Any ideas? Know its hard without the full code, I'm just wondering if there's some general gotcha around sdpans, inputs, padding, margins, grid calculation etc. etc. Thanks, ~ Coryphon ~