I'm facing an issue with adding a background image to a CSS class as it doesn't show up.
Even after trying to specify height and width, the problem persists.
<div class="landing1">
<h2>The World Of Coding</h2>
<p>Get involved</p>
</div>
<style>
body,
html {
margin: 0;
size: 100%;
}
.landing1 {
margin: 3px;
text-align: center;
background-image: url(imgs/bg.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
width: 400px;
height: 500px;
}
</style>
The background image remains invisible despite all efforts.