I am trying to find a solution to my problem, but so far no luck. The Body selector has a max-width of 85%, and there are other selectors like header which I want to have a background image that spans 100% of the width behind the body selector attribute.
HTML Code -
<body>
<header>
<div></div>
</header>
</body>
CSS Code -
body {
width: 85%;
}
.header {
display:flex;
position: relative;
flex-direction: row;
align-items: center;
text-align: center;
justify-content: center;
background-color: rgba(0,0,0,0.8);
background-image: url(../assets/header-bg.png);
background-repeat: no-repeat;
background-position: center 120%;
background-size: cover;
overflow: visible;
padding: 10% 0 10% 0;
.header::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0,0,0,.5);
}