I am working on an HTML web page that displays flashcards. These flashcards have a description on front and back, as well as the possibility of having an image or linked video on the front and back. The front and back are displayed in separate divs, and I am using Bootstrap. I am setting the background of each div to be white, but after doing so I realized they are not the same height.
This does not work as shown in the image above.
#front_card,
#back_card {
background-color: white;
}
.row.col-sm-4 {
display: flex;
}
.col-sm-4 {
flex: 1;
padding: 1em;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<div class="row" id="study-row">
<div class="col-sm-4" id="white-col">
<h3> Front </h3>
<div id="front_card"></div>
</div>
<div class="col-sm-4" id="white-col">
<h3> Back </h3>
<div id="back_card"></div>
</div>
<div class="col-sm-4">
<button class="right" id="flip_card" type="submit">Flip Card</button><br /> <br />
<button class="right" id="next_card" type="submit">Next Card</button><br />
</div>
</div>