While I've come across similar questions to mine, none of them seem to solve my specific issue. Essentially, I've set the body width to 960px, which is a common standard practice. However, there are certain elements such as header, footer, and some divs with background colors indicating different content areas that I want to ignore this width restriction.
The solution I am looking for should allow all other divs to bypass the body width limitation, not just the header and footer.
I have ruled out using position absolute because I don't want it to affect the positioning of my footer in the future.
html,
body {
background-color: white;
margin: 0 auto;
width: 960px;
height: 100%;
}
.Frame {
display: table;
height: 100%;
width: 100%;
}
.Row {
display: table-row;
height: 1px;
}
.Row.Expand {
height: auto;
}
.Row.footer {
height: 30px;
background-color: gray;
margin-bottom: 0;
width: 100%;
}
<body class="Frame">
<header class="Row">
/*header should ignore body width*/
</header>
<section class="Row Expand">
/*some div should ignore the body width*/
</section>
<footer class="Row footer">
/*footer should ignore body width/*
<h3>Sticky footer</h3>
</footer>
</body>