Not quite sure how to phrase the title, but here it is.
https://i.sstatic.net/d2dYB.png
I want to shift the tables so that the headings are on the blue part of my page, while the body of the table remains in the grey section. I attempted using margin-bottom:-50px;
, and as expected, this was the outcome. Below is the CSS and HTML code for my attempt so far!
How can I achieve this?
Blue section:
#section2 {
background-color: #2aa3ef; /**blue**/
padding-top:80px;
padding-bottom:80px;
}
Grey section:
#section1 {
background-color: #e6ecf0;
padding-top:20px; padding-bottom:20px; /**bluey white**/
}
<div class="col-md-4 col-sm-12">
<table class="points_table">
<thead>
<tr>
<th><h4>Premium domains</h4></th>
</tr>
</thead>
<tbody class="points_table_scrollbar">
<!-- Table content goes here -->
</tbody>
</table>