Skip to content

Commit

Permalink
Merge pull request #4 from trechriron/trentin-change-css-2
Browse files Browse the repository at this point in the history
center fields
  • Loading branch information
trechriron authored Dec 7, 2023
2 parents cccfa38 + 6fc4a90 commit b5eb6e5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/App/DevFormComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
padding: "10px",
width: "100%",
},
rowFields: {
display: "flex",
flexDirection: "row",
justifyContent: "space-around",
padding: "10px",
width: "100%",
alignItems: "center",
},
column: {
display: "flex",
flexDirection: "column",
Expand Down Expand Up @@ -131,7 +139,7 @@

<form onSubmit={handleSubmit}>
{/* Text Fields */}
<div style={formStyles.row}>
<div style={formStyles.rowFields}>
{Array.from({ length: 5 }, (_, index) => (
<div key={index} style={formStyles.column}>
<label style={formStyles.formLabel} htmlFor={`textField${index + 1}`}>{`Phase ${index + 1}:`}</label>
Expand All @@ -149,7 +157,7 @@
</div>

{/* Checkboxes */}
<div style={formStyles.row}>
<div style={formStyles.rowFields}>
{Array.from({ length: 5 }, (_, index) => (
<div key={index} style={formStyles.column}>
<label style={formStyles.formLabel}>
Expand Down

0 comments on commit b5eb6e5

Please sign in to comment.