Despite encountering similar or potentially identical questions, I have attempted the suggested solutions without success.
My aim is to design a table that centers text both vertically and horizontally, ideally using flex. However, the structure of the table gets disrupted when employing "d-flex align-items-center justify-content-center". Furthermore, it is crucial for the first blocks on the left to have extended width!
I am striving to replicate or achieve something akin to the table displayed on this webpage ""
Below is my code:
<div class="row my-4 bg-white">
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th><h6 class="font-weight-light">Ad unit</h6></th>
<th><h6 class="font-weight-light text-capitalize">buy</h6></th>
<th><h6 class="font-weight-light text-capitalize">rent</h6></th>
<th><h6 class="font-weight-light text-capitalize">sold</h6></th>
<th><h6 class="font-weight-light text-capitalize">news</h6></th>
<th><h6 class="font-weight-light text-capitalize">guides</h6></th>
<th><h6 class="font-weight-light text-capitalize">lifestyle</h6></th>
<th><h6 class="font-weight-light text-capitalize">video hub</h6></th>
<th><h6 class="font-weight-light text-capitalize">find agents</h6></th>
<th><h6 class="font-weight-light text-capitalize">new homes</h6></th>
</tr> justifa
</thead>
<tbody>
<tr>
<td><h6 class="font-weight-light">Home Page Hero</h6></td>
<td class="bg-green"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
ul a{
color: #8ec302 !important;
text-underline: none !important;
text-decoration: none !important;
}
a{
color: inherit !important;
text-underline: none !important;
text-decoration: none !important;
}
#navigation a:hover{
color: #8ec302 !important;
text-underline: none !important;
text-decoration: none !important;
}
#navigation a{
color: inherit !important;
text-underline: none !important;
text-decoration: none !important;
}
.footer-hyperlink-hover a:hover{
color: #8ec302 !important;
text-underline: none !important;
text-decoration: none !important;
}
.image-no-resize {
min-height: 200px;
min-width: 350px;
}
.card-header {
border: 1px solid rgba(0,0,0,.125);
border-radius: .25rem;
}
.card {
border: none !important;
}
h6{
padding-bottom: 2px !important;
margin-bottom: 2px !important;
}
ul h6{
padding-bottom: 2px !important;
margin-bottom: 2px !important;
}
span{
font-weight: bold;
}
/*End of styling*/
/*Pictures*/
.career-picture{
background: linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.5)), url("../images/career.jpg") center/cover no-repeat;
}
/*End of pictures*/
/*Spacing*/
.container-fluid-short{
max-width: 100rem;
width: 100%;
}
.container-fluid-shorter{
max-width: 65rem;
}
.container-fluid-shorter-inner{
max-width: 76rem;
}
Although I managed to set a custom width on the left initially, it ceased functioning after recent modifications to the code. Could you provide any guidance on what might be incorrect? Thank you for any assistance!