My table is extending beyond the width of both the navbar and footer. Is there a way, using HTML and CSS, to make the navbar and footer expand in width to match that of the table? Most solutions I've found focus on formatting the table instead of addressing the navbar and footer.
The issue arises when all the fields within the browser view get crowded together, causing things to become disorganized. Any assistance or guidance on how to tackle this would be greatly appreciated.
https://i.stack.imgur.com/j5Wsj.png
Code:
html,
body {
height: 100%;
margin: 0;
width: 100%
}
body {
display: flex;
flex-direction: column;
justify-content: space-between;
}
main {
flex: 1;
}
.footer {
background-color: #003366;
text-align: center;
color: white;
height: 30px;
}
#footer-center {
color: white;
}
#footer-right {
float: right;
color: blue;
}
.navbar .navbar-expand-lg .navbar-dark .bg-dark {
width: 100%
}
.navbar-nav li:hover > .dropdown-menu {
display: block;
content: none;
}
.dropdown-menu.show {
background-color: #f5f6f7;
}
table.GeneratedTable {
background-color: #ffffff;
border-collapse: collapse;
border-width: 2px;
border-color: #ffcc00;
border-style: solid;
color: #000000;
}
table.GeneratedTable td, table.GeneratedTable th {
border-color: #ffcc00;
border-style: solid;
}
table.GeneratedTable thead {
background-color: #ffcc00;
}