Skip to content

Commit

Permalink
Made BMR Calculator responsive (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
agastya3636 authored Jun 24, 2024
1 parent 9f35626 commit 97d9b9f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Calculators/BMR-Calculator/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ body {

.calculator {
background-color: #fff;
width: 400px;
width: calc(100vw - 40px);
max-width: 400px;
margin: 50px auto;
padding: 20px;
border-radius: 8px;
Expand All @@ -30,8 +31,15 @@ label {
color: #555;
}

input[type="number"],
select {
input[type="number"] {
width: calc(100% - 16px);
padding: 8px;
margin-bottom: 12px;
border: 1px solid #ccc;
border-radius: 4px;
}

select{
width: 100%;
padding: 8px;
margin-bottom: 12px;
Expand Down

0 comments on commit 97d9b9f

Please sign in to comment.