I know this question has been asked before, but none of the answers have helped me. I have used vertical-align:middle; and line-height:normal; but they don't work. I would like what is inside modal-body div to be vertically center aligned. Thanks for your help.
Here is my code:
<div id="modal">
    <div class="modal-header">
      <div class="title">Please leave your feedback!</div>
    </div>
    <div class="modal-body">
      <div class="rate">
    <input type="radio" id="star5" name="rate" value="5" />
    <label for="star5" title="text">5 stars</label>
    <input type="radio" id="star4" name="rate" value="4" />
    <label for="star4" title="text">4 stars</label>
    <input type="radio" id="star3" name="rate" value="3" />
    <label for="star3" title="text">3 stars</label>
    <input type="radio" id="star2" name="rate" value="2" />
    <label for="star2" title="text">2 stars</label>
    <input type="radio" id="star1" name="rate" value="1" />
    <label for="star1" title="text">1 star</label>
     </div>
    </div>
        <input id="submitfeedback" type="submit" value="Submit">
  </div>
#modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 200ms ease-in-out;
  border: 1px solid black;
  border-radius: 10px;
  z-index: 10;
  background-color: white;
  width: 600px;
  max-width: 80%;
  text-align:center;
}
.modal-header {
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid black;
}
.modal-body {
  padding: 10px 15px;
  vertical-align: middle;
  line-height: normal;
}
.rate {
    display:inline-block;
    height: 46px;
    padding: 0 10px;
}
 
     
    