position elements side by side
Is there a way to have EditorFor controls positioned side by side in a popup form? I have a form that's going to have a box with 16 checkboxes in it and I'd like to have the checkboxes and their labels be oriented as if in a table that's 4 columns wide by 4 rows high instead of 16 checkboxes and labels down the left side of the view.
Sean Davidson
asked
at 14 Dec 2021
Answers
-
there are various ways to position elements in css, either via
float
,flex
, ordisplay: inline-block;
it doesn't matter that it is inside the popup, this should help: https://www.w3schools.com/css/css_inline-block.asp https://www.w3schools.com/cssref/css3_pr_flex.aspOmuanswered at 14 Dec 2021