So I am trying to make my background image show as in the photo below:expected result
But yet,it does not show up like intended when i try to make it work:reality result
Here's my CSS code:
.child2 img{
background-image: url('/assets/images/imageborder.png');
background-repeat:no-repeat;
background-position: center;
background-size:cover;
background-size:400px 30px;
}
HTML part:
<div class="Parents">
<div class="child1">
<h4>Infrastructure</h4>
<p>We innovate & supply effective planting system. Provide consultation, design, build & transfer of a
non-toxic farm.</p>
</div>
<div class="child2">
<img src="assets/images/infrastructure.png">
</div>
</div>
I dont understand,I made everything perfect and yet the background doesn't show up somehow..... Can anyone help me to solve this?
