I'm trying to get two buttons to stack on top of each other in an HTML table; however, I'm facing difficulty with accomplishing this task. Here is the link to my codepen. Also, is there any reason as to why the line won't go between each separate booking?Line Picture My apologies if it's wrong to ask two questions in one post, I figured that it wasn't worth creating another post though. Thank you all so much! :)
HTML:
<div class="currentBookings">
<div class="currentBookingsContainer">
<h3 class="currentBookingsTitle">Current Bookings</h3>
<div class="line"></div>
<table style="width: 340px">
<div class="bookingFields">
<tr>
<th><h3 class="field">Flight Number</h3></th>
<th><h3 class="field">Route</h3></th>
<th><h3 class="field">Aircraft</h3></th>
<th><h3 class="field">Distance</h3></th>
<th colspan="2"><h3 class="field">Options</h3></th>
</tr>
</div>
<div class="actualBookings">
<tr>
<td><h4 class="bookingExample">BA239</h4></td>
<td><h4 class="bookingExample">KLAX-EGLL</h4></td>
<td><h4 class="bookingExample">BA789 (GZ-WAD)</h4></td>
<td><h4 class="bookingExample">4999.9nm</h4></td>
<td><button type="button" class="optionButton" id="remove">Remove Bid</button></td>
<td><button type="button" class="optionButton" id="file">File PIREP</button></td>
</tr>
<tr>
<td><h4 class="bookingExample">BA239</h4></td>
<td><h4 class="bookingExample">KLAX-EGLL</h4></td>
<td><h4 class="bookingExample">BA789 (GZ-WAD)</h4></td>
<td><h4 class="bookingExample">4999.9nm</h4></td>
<td><button type="button" class="optionButton" id="remove">Remove Bid</button></td>
<td><button type="button" class="optionButton" id="file">File PIREP</button></td>
</tr>
<tr>
<td><h4 class="bookingExample">BA239</h4></td>
<td><h4 class="bookingExample">KLAX-EGLL</h4></td>
<td><h4 class="bookingExample">BA789 (GZ-WAD)</h4></td>
<td><h4 class="bookingExample">4999.9nm</h4></td>
<td><button type="button" class="optionButton" id="remove">Remove Bid</button></td>
<td><button type="button" class="optionButton" id="file">File PIREP</button></td>
</tr>
</div>
</table>
</div>
</div>
CSS:
.currentBookings{
text-align: center;
}
.currentBookingsContainer{
width: 340px;
height: 290px;
border: .1px solid rgb(206, 203, 203);
font-weight: bold;
margin-top: 22px;
border-radius: 18px;
text-align: left;
background-color: #ffffff;
box-shadow: 0px 0px 1.5px rgb(46, 46, 46);
display: inline-block;
overflow: hidden;
text-align: center;
}
.currentBookingsTitle{
margin-left: -164px;
margin-top: 11px;
}
.bookingsFields{
text-align: center;
display: flex;
}
.field{
font-size: 14px;
float: left;
margin: 3.5px;
margin-top: -4px;
text-align: center;
}
.actualBookings{
text-align: center;
display: flex;
margin-left: -35px;
}
.bookingExample{
font-size: 12px;
margin: 10px;
margin-top: -5px;
}
.optionButton{
width: 100%;
font-size: 6px;
display: block;
cursor: pointer;
box-shadow: 0px 0px .5px rgb(46, 46, 46);
border: 0;
}
#remove{
color: white;
background-color: #f40c3b;
}
#file{
color: white;
background-color: #003870;
}