Hi I am creating a code where you can manage a sprinkler system. I would like it to have a modern look and the page to be visually appealing currently I have two sides/columns each column has boxes on it. Currently the boxes do not align with each other how I want. I would the bottom box on the left to be 5 px below the one on the top, not in line with the one on the write. I also want the boxes that say "Run History" to have a scrolling segment. The part that says Run History and the top of the table to be fixed. While the table elements are scrolling inside the div. The full code is on this codepen:https://codepen.io/masonhorder/pen/gyQmBG
Part of the code is here HTML
<div class="body">
<div class="boxes">
<div class="water box box-left">
<h1>Water Saved</h1>
<p>You Have Saved:<br><span class="huge">15</span><br> gallons of water</p>
</div>
<div class="water box box-right">
<div class="fixed">
<h1>Run History</h1>
<table>
<tr>
<th>Date</th>
<th>Schedule</th>
<th>Run Factor</th>
</tr>
<tr>
<td>April 22</td>
<td>One</td>
<td>0.8</td>
<tr>
<td>April 21</td>
<td>One</td>
<td>1</td>
</tr>
<tr>
<td>April 20</td>
<td>One</td>
<td>1</td>
</tr>
<tr>
<td>April 19</td>
<td>One</td>
<td>1</td>
</tr>
<tr>
<td>April 18</td>
<td>One</td>
<td>1</td>
</tr>
<tr>
<td>April 17</td>
<td>One</td>
<td>1</td>
</tr>
<tr>
<td>April 16</td>
<td>One</td>
<td>1.2</td>
</tr>
<tr>
<td>April 15</td>
<td>One</td>
<td>1</td>
</tr>
</div>
</table>
</div>
</div>
<!-- column 2 -->
<div class="boxes">
<div class="water box box-left">
<h1>Water Saved</h1>
<p>You Have Saved:<br><span class="huge">15</span><br> gallons of water</p>
</div>
<div class="water box box-right">
<div class="fixed">
<h1>Run History</h1>
<table>
<tr>
<th>Date</th>
<th>Schedule</th>
<th>Run Factor</th>
</tr>
<tr>
<td>April 22</td>
<td>One</td>
<td>0.8</td>
<tr>
<td>April 21</td>
<td>One</td>
<td>1</td>
</tr>
<tr>
<td>April 20</td>
<td>One</td>
<td>1</td>
</tr>
<tr>
<td>April 19</td>
<td>One</td>
<td>1</td>
</tr>
<tr>
<td>April 18</td>
<td>One</td>
<td>1</td>
</tr>
<tr>
<td>April 17</td>
<td>One</td>
<td>1</td>
</tr>
<tr>
<td>April 16</td>
<td>One</td>
<td>1.2</td>
</tr>
<tr>
<td>April 15</td>
<td>One</td>
<td>1</td>
</tr>
</div>
</table>
</div>
</div>
</div>
CSS
#blue{
color: rgb(38, 99, 242);
}
.huge{
font-size:90px;
font-weight: 900;
}
#name-link:hover{
text-decoration: none;
}
.body {
/* margin-left: 25%; */
/* margin-right: 25%; */
}
.body{
box-sizing: border-box;
}
.boxes::after {
content: "";
clear: both;
display: table;
}
.boxes{
width:100%;
}
.box{
float: left;
}
.box{
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border: 1px solid rgb(229, 229, 229);
width: 35%;
padding:1%;
/* max-height: 300px;
overflow: scroll; */
margin-left:10%;
border-radius: 25px;
box-shadow: 8px 8px 4px rgb(247, 247, 247);
}
.box:hover{
transition: 0.2s;
box-shadow: 10px 10px 7px rgb(230, 230, 230);
cursor:pointer;
}
.underline{
text-decoration: underline;
}
td, th {
/* border: 1px solid #dddddd; */
text-align: left;
padding: 8px;
}
th{
border-bottom: 1px solid rgb(229, 229, 229);
}
table {
width: 100%;
text-align: right;
}
.scroll{
/* height:200px; */
overflow: scroll;
}
/* .fixed{
position: fixed;
} */