Apologies if my wording is unclear, but suppose I have the following HTML and CSS:
<body>
<main role="main" class="container">
<div class="row">
<div class="col-sm-4">1</div>
<div class="col-sm-4">2</div>
<div class="col-sm-4">3</div>
<div class="col-sm-6">Some Text</div>
<div class="col-sm-6">Some Text</div>
<div class="col-sm-12">6</div>
</div>
</main>
</body>
I want to change the color of #test to something different. However, if I apply the following CSS:
body {
background-color: grey;
}
#test {
background-color: yellow;
background-size: cover;
}
It only colors the background of the grid, not the entire page. The sides of the page remain white and I'm unsure how to fix this issue.
I'd like the yellow background to extend to the edge of the page.
Here's an example showing the yellow background not extending