|
When using a form component, control fields are arranged sequentially, row by row. Using the width property, they can be reduced, allowing multiple elements to fit on the same row. However, there are some fields that I'd like to leave as single fields on the row and, for example, center them. What's the simplest way to control the position and alignment of fields in a row in SQLPage when using a form component? |
Answered by
lovasoa
Nov 7, 2025
Replies: 2 comments
|
You could do this with a bit of css select 'shell' as component, 'custom-form.css' as css;
select 'form' as component;
select 'name' as name, 4 as width;
select 'city' as name, 6 as width;
select 'zip' as name, 6 as width;.row label:has(input[name="name"]) {
width: 100%;
padding: 0 25%;
}
https://sql-page.com/component.sql?component=shell#component |
0 replies
Answer selected by
Aesth
|
Excellent! And thank you so much again! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

You could do this with a bit of css
https://sql-page.com/component.sql?component=shell#component