Skip to content

Commit

Permalink
Adjust size of input edit boxes font and width
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel Gonzalez committed Jan 8, 2024
1 parent f9cc43c commit 8d07bf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ <h1>Simulate Compound Growth With Volatility</h1>

<div class="input-wrapper">
<label for="cagr">CAGR (%): <span id="cagrValue">9</span>%</label>
<input type="range" id="cagr" name="cagr" min="0" max="30" value="9" step="0.5" oninput="updateSliderValue('cagr', 'cagrValue')">
<input type="range" id="cagr" name="cagr" min="0" max="30" value="9" step="1" oninput="updateSliderValue('cagr', 'cagrValue')">
</div>

<div class="input-wrapper">
<label for="volatility">Annualized volatility (%): <span id="volatilityValue">14</span>%</label>
<input type="range" id="volatility" name="volatility" min="0" max="50" value="14" step="0.5" oninput="updateSliderValue('volatility', 'volatilityValue')">
<input type="range" id="volatility" name="volatility" min="0" max="50" value="14" step="1" oninput="updateSliderValue('volatility', 'volatilityValue')">
</div>

<div class="input-wrapper">
Expand Down
4 changes: 2 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ h1 {
margin-bottom: 30px; /* Increase vertical separation */
}
.content input[type="number"] {
width: 30%; /* Narrow width for number inputs */
font-size: 1.5em; /* Larger font size for the number inside the input */
width: 35%; /* Custom width for number inputs */
font-size: 1.3em; /* Larger font size for the number inside the input */
}
.content input[type="range"],
.content button {
Expand Down

0 comments on commit 8d07bf8

Please sign in to comment.