I am a newbie with HTML and CSS and here is my problem.
I want to use a URL to display an image, and when I used this code (from a tutorial), it's absolutely perfect.
<img src="https://myphamohui.com/wp-content/uploads/2019/07/sua-mat-ohui-prime-advancer.png">
But I want to use a div class to put it into the div, and here is my code:
<div class="main_product-img" style="background-image: url(https://myphamohui.com/wp-content/uploads/2019/07/sua-mat-ohui-prime-advancer.png);"></div>
But when I ran it, it did not display the image as I wanted.
I thought that when I put the URL into the div, it must display the image as the code above?
Could you please help me with this problem?