diff --git a/index.html b/index.html index 0bb1201..3231525 100644 --- a/index.html +++ b/index.html @@ -61,12 +61,16 @@ background-color: #e9ecef; cursor: not-allowed; } - .radio-group label, .checkbox-group label { - font-weight: normal; - margin-right: 15px; + .radio-group { + display: flex; + align-items: center; /* This vertically aligns the text with the button */ } - input[type="radio"], input[type="checkbox"] { - margin-right: 5px; + .radio-group label { + display: inline-block; /* This prevents the label from taking a full line */ + font-weight: normal; + margin-bottom: 0; /* Remove bottom margin for inline elements */ + margin-left: 4px; /* Space between the button and the text */ + margin-right: 20px; /* Space between the options */ } small { display: block; @@ -89,6 +93,29 @@ input[type="submit"]:hover { background-color: #2649B2; } + .checkbox-container { + display: grid; + grid-template-columns: auto 1fr; /* Checkbox column, then text takes remaining space */ + gap: 0 10px; /* 10px space between checkbox and text */ + align-items: start; + margin-bottom: 12px; /* Space between each checkbox item */ + } + .checkbox-container input[type="checkbox"] { + margin-top: 5px; /* Nudges the checkbox down to align with the text */ + } + .checkbox-container label { + font-weight: normal; + margin-bottom: 0; + display: block; + } + .checkbox-container label strong { + font-weight: bold; /* Make the label title bold */ + display: block; + } + .checkbox-container label small { + margin-top: 2px; + line-height: 1.3; + }
@@ -165,9 +192,10 @@