I have an image as my background and its showing through all of the elements on my webpage. seeing as though i cant change the background on each of the elements on my webpage i want to just have a white square that will go over the background image so that the image isnt bleeding through and blocking all the text.
i have tried reseting. html, body { background-color: solid black; } and ive tried to just set the background without the image but that didnt seem to work either.
<div class="container">
<div class="introtext">
<p>Welcome To My Website!</p>
</div>
<div class="row">
<div class="column">
<head>first post</head>
</div>
<div class="column">
<head>second post</head>
</div>
<div class="column">
<head>third post</head>
</div>
</div>
</div>
<footer>
<div class=footermaindiv>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Social Links</a></li>
<li><a href="#">Advertise</a></li>
</div>
</footer>
i need to be able to set a white background over the image that i have set for the current background. for some reason i cant set the background-color for anything on my webpage.
html, body { background-color: solid black; }
is invalid syntax. Try e.g.html, body { background-color: black; }
– j08691