What is the right way to put the input box just below the label, not in line with it? I am trying to do this for more than 4 hours but could not able to do it.
The product-related duration label and the input are perfect and which is what I wanted but it happened luckily because the text is large. How can I do the same with others? I tried some other methods like adding empty spaces or ClassName="form-control" and a bunch of others but nothing working properly, it makes the form too big.
The code that I am using -
controls = dbc.Card(
[
dbc.FormGroup(
[
dbc.Label("Page Value", size="md"),
dcc.Input(
id="page-value-input",
value=10,
type="number",
min=0,
max=300,
# className="form-control",
),
],
),
dbc.FormGroup(
[
dbc.Label("Exit Rate", size="md"),
dcc.Input(
id="exit-rate-input",
value=0,
type="number",
min=0,
max=100,
# className="form-control",
),
]
),
dbc.FormGroup(
[
dbc.Label("Bounce Rate", size="md"),
dcc.Input(
id="bounce-rate-input",
value=0,
type="number",
min=0,
max=100,
# className="form-control",
),
],
),
dbc.FormGroup(
[
dbc.Label("Product Related", size="md"),
dcc.Input(
id="product-related-input",
value=10,
type="number",
min=0,
max=300,
# className="form-control",
),
],
),
dbc.FormGroup(
[
dbc.Label("Product Related Duration", size="md"),
dcc.Input(
id="product-related-dur-input",
value=10,
type="number",
min=0,
max=300,
# className="form-control",
),
],
),
],
body=True,
)
dbc.Row(
[dbc.Col(controls, md=4), dbc.Col(dcc.Graph(id="cluster-graph"), md=8)],
align="center",
),

